Error installing h5py using pip - apache-spark

Error installing h5py using pip
Environment:- spark service IBM bluemix
!pip install --user h5py fails with error gcc failed.
I even tried to download the package and then run !python setup.py install

Here is an example notebook that illustrates how to:
Grab a copy of the native HDF5 lib source and extract
Configure, Make and Install the native HDF5 libs
Successfully complete the install of h5py onto a notebook within the Bluemix Spark service.
Executes some of the h5py quick start guide sample code.
Hope this helps.

Related

Azure AutoML Python SDK, Issues importing into VS Code Jupyter Notebook

I have a .yml that installs all the necessary Azure ML packages.
Upon creating the environment with the YML, I test to make sure I can import the packages, and I can.
But when I open the Jupyter notebook I will be using and import the necessary packages, one is not found.
from azureml.train.automl import AutoMLConfig
ModuleNotFoundError: No module named 'azureml.train.automl.automlconfig'
But When I import it in the command prompt, it successfully imports
It seems like this is an issue with VS code, has anyone else encountered this?
I tried reproducing the issue while importing AutoMLConfig in VSCode as below:
Followed the below steps to fix it by installing its related Python packages.
Activate the virtual environment from below command
python -m venv .venv
.venv\Scripts\activate
Then install pip install azureml and “pip install azureml-core”
Pip install azureml-train
Pip install azureml-train-automl
Also, we have a Microsoft documentation where we have all the sub packages of azureml.

ERROR in install opencv in my python 3.6.6

I HAVE PYTHON 3.6.6 INSTALLED IN MY WINDOWS 7 PLATFORM BUT WHEN I TRIED TO INSTALL OPENCV PACKAGE IT SAYS REQUIREMENT ALREADY SATISFIED AND IF I TRY TO IMPORT CV2 IT SAYS NO MODULE .I'VE TRIED ALL POSSIBLE METHODS ON INTERNET WHAT SHOULD I DO
i tried to download opencv exe from sourceforge and copying cv2.pyd file and then pasting it in site packages
i tried pip install opencv_python-4.0.1-cp37-cp37m-win_amd64.whl
but nothing works
The error message says that you are asking PIP install a version of cv2 for 64-bit Python 2.7, and that installation is failing. So the installation is not happening because it's the wrong version. That might be because you don't have Python 2.7, or because you have a 32-bit processor, or both. Navigate to Python36\Scripts and issue the command pip install opencv_python. Then pip will find the appropriate file to download, and install it.

Anaconda Jupyter Notebook error for !pip install Twisted

I am trying to do a !pip install Twisted and I am getting an error "Failed building wheel for Twisted" Any ideas? Is there any methods for installing a .wheel file directly with IPython if I download the .whl file directly from pypi.org??
I had the same problem. And solved it doing:
conda install twisted
as said by notorious.no

configure qiskit on win10 error:numpy.distutils.system_info.NotFoundError: no lapack/blas resources found

I’m new to python and I got some problem when trying to install QISKit.
First, I was using pip install qiskit on cmd, but it showed an error
numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
I searched on internet and pip install scipy separately. It worked
Collecting scipy
Using cached scipy-1.0.0-cp36-none-win32.whl
Requirement already satisfied: numpy>=1.8.2 in
d:\programming\python\lib\site-packages (from scipy)
Installing collected packages: scipy
Successfully installed scipy-1.0.0
Then I tried pip install qiskit again. It showed an error:
Found existing installation: scipy 1.0.0
Uninstalling scipy-1.0.0:
Successfully uninstalled scipy-1.0.0
Running setup.py install for scipy ... error
……
numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
----------------------------------------
Rolling back uninstall of scipy
So I used the second way:
git clone https://github.com/QISKit/qiskit-sdk-py
cd qiskit-sdk-py
then
pip install -r requirements.txt
again
Installing collected packages: scipy, sympy
Found existing installation: scipy 1.0.0
Uninstalling scipy-1.0.0:
Successfully uninstalled scipy-1.0.0
Running setup.py install for scipy ... error
……
numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
----------------------------------------
Rolling back uninstall of scipy
how can I solve this and add QISKit to python lib?
reference:
https://github.com/QISKit/qiskit-sdk-py/blob/master/doc/install.rst#3.1-Setup-the-environment
Installing scipy, at least the version currently required by QISKit, on Windows requires that you have a couple of different compilers installed, which you probably don't. I recommend you install Anaconda. If you download the full Anaconda package, it includes the appropriate scipy binary, or alternatively you can do conda install scipy=0.19 before you do pip install qiskit.
I think that should fix your current issue but feel free to reach out with any others -- I'll be happy to help. You can also find more documentation at qiskit.org, github.com/QISKit/qiskit-sdk-py, and on the IBM Q experience community forums.
Cheers,
Doug

psycopg2 successfully installed, but pip freeze does not show it

I use psycopg2 for my django app.
When i run python manage.py collectstatic i see django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: No module named psycopg2.
Then I run pip install psycopg2, but after successful installation pip freeze does not see it. I have installed libpq-devel and python-devel.
What am i doing wrong?
I am using Linux AMI from Amazon (EC2), if it is important.
UPDATE:
i tried to wget source and install it like python setup.py install. Now i can import psycopg2, but still can't do it in virtualenv.
Somehow, package was installed in directory lib64, but all other packages was installed in directory lib, so I copied psycopg2 from lib64 to lib and everything became all right.

Resources