I tried installing the Scanpy package on Jupyter with "pip install Scanpy" but I got the the errors below;
ERROR: pynndescent 0.5.2 has requirement numba>=0.51.2, but you'll have numba 0.48.0 which is incompatible. ERROR: umap-learn 0.5.1 has requirement numba>=0.49, but you'll have numba 0.48.0 which is incompatible
When I tried to separately install an upgraded version of numba, I got the error below;
ERROR: Cannot uninstall 'llvmlite'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
Run pip install --upgrade numba
Run pip install scanpy
you can try install with pip install -c numba numba=0.51.2.1rc1 if it doesn't work for you alternativly install RUN pip install llvmlite --ignore installed before pip install numba.
HAVE A GOOD DAY:)
Related
I'm trying to install this package to use it with unity
mlagents 0.29.0
https://pypi.org/project/mlagents/
pip3 install mlagents
Note: i have a mac
I'm getting this error
ERROR: Some build dependencies for h5py>=2.9.0 from https://files.pythonhosted.org/packages/56/c7/9410b3802f456c702f6e0ccebf82e628f42a30921f61a232e26e424d95d4/h5py-3.5.0.tar.gz (from mlagents) conflict with the backend dependencies: numpy==1.22.3 is incompatible with numpy ==1.19.3; python_version>='3.9'.
I also tried this command
pip3 install mlagents --use-feature=2020-resolver
didn't work
Found out that h5py removed setup dependencies and newer version now should be able to be installed. Try this:
pip3 install h5py==3.7.0
and then
pip3 install mlagents
I fixed the problem by running this command
pip3.8 install mlagents
pip3.8 not pip3
I try to install Tensorflow using this line in PowerShell (as admin):
pip install tensorflow
But received this ERROR:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
astroid 2.3.2 requires six==1.12, but you have six 1.15.0 which is incompatible.
astroid 2.3.2 requires wrapt==1.11.*, but you have wrapt 1.12.1 which is incompatible.
Also, I tried to uninstall six and wrapt using: pip uninstall six wrapt and run pip install tensorflow again but still got the same error as above.
Thank you in advance!
I was opening Anaconda Navigator so I closed it and reopened PowerShell again, ran the install command and it went smoothly without further error.
I have an M1 MacBook. I have installed python 3.9.1 using pyenv, and have pip3 version 21.0.1.
I have installed homebrew and hdf5 1.12.0_1 via brew install hdf5.
When I type
pip3 install h5py
I get the error:
Requirement already satisfied: numpy>=1.19.3 in /Users/.../.pyenv/versions/3.9.1/lib/python3.9/site-packages (from h5py) (1.20.0)
Building wheels for collected packages: h5py
Building wheel for h5py (PEP 517) ... error
Loading library to get build settings and version: libhdf5.dylib
error: Unable to load dependency HDF5, make sure HDF5 is installed properly
error: dlopen(libhdf5.dylib, 6): image not found
----------------------------------------
ERROR: Failed building wheel for h5py
I saw that libhdf5.dylib is present in /opt/homebrew/opt/hdf5/lib, so I tried export LDFLAGS="-L/opt/homebrew/opt/hdf5/lib" and export CPPFLAGS="-L/opt/homebrew/opt/hdf5/include" beforehand but they don't help.
How can I install h5py?
I am actually installing h5py as a requirement to install Keras.
Thanks!
This works for me:
$ brew install hdf5
$ export HDF5_DIR="$(brew --prefix hdf5)"
$ pip install --no-binary=h5py h5py
Try to install h5py using conda. Works for me.
conda install h5py
I want to use yolov5. According to https://pytorch.org/hub/ultralytics_yolov5/, you should have Python>=3.8 and PyTorch>=1.7 installed, as well as YOLOv5 dependencies.
Python and pytorch are up to date:
pip show torch
Version: 1.7.1
python --version
Python 3.9.1
But when I try to install the yolov5 dependencies, I get an error message:
pip install -qr https://raw.githubusercontent.com/ultralytics/yolov5/master/requirements.txt
ERROR: Could not find a version that satisfies the requirement torchvision>=0.8.1
ERROR: No matching distribution found for torchvision>=0.8.1
An updated version of torchvision is needed (???). So I run the update, but when I check the version it hasn't worked.
pip show torchvision
Version: 0.2.2.post3
-m pip install --upgrade torchvision
pip show torchvision
Version: 0.2.2.post3
Is torchvision needed for installing the yolov5 dependencies? How do I move forward? I'm on Windows 10.
Thanks!
I was getting similar error. Installing fresh compatible libraries (torch==1.7.1 & torchvision==0.8.2) worked for me.
virtualenv -p python3.8 torch17
source torch17/bin/activate
pip install cython matplotlib tqdm scipy ipython ninja yacs opencv-python ffmpeg opencv-contrib-python Pillow scikit-image scikit-learn lmfit imutils pyyaml jupyterlab==3
pip install torch==1.7.1+cu101 torchvision==0.8.2+cu101 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
Be careful about your cuda version and install accordingly. Mine is 10.1. Simply using pip install torch==1.7.1 will install latest cuda version (11) compatible lib which might not be your case.
Virtual environment activation command will be different for Windows. I am on Linux
Can someone explain how to install Prophet on Python3?
I tried pip install fbprophet but it did not work.
Tried to do this in the notebook after importing pandas and sklearn and got another error:
import pandas as pd
import sklearn as sk
from fbprophet import Prophet
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-4-f503e9c6cf11> in <module>()
----> 1 from fbprophet import Prophet
ModuleNotFoundError: No module named 'fbprophet'
First you have to Install c++ compiler, you can install c++ compiler with below command -
conda install libpython m2w64-toolchain -c msys2
Once c++ compiler installed you have to install pystan, to install pystan you can use below command
pip install pystan
Finally, now we are ready to install facebook prophet -
pip install fbprophet
Hope this is helpful..
For more details follow this link -
https://facebook.github.io/prophet/docs/installation.html
Easiest way is to install fbprophet :
conda install -c conda-forge fbprophet
This will download all the needed packages first.
Then ->
conda install -c conda-forge/label/cf201901 fbprophet
Try installing fbprophet
pip install fbprophet
Or
pip3 install fbprophet
I had relatively similar problem, but my error was it couldn't import pystan which in installed using pip install pystan. so the problem was fbprophet doesn't support latest version of pystan so uninstall previous one and install older version of pystan.
pip install pystan==2.19.1.1
pip install fbprophet
https://facebook.github.io/prophet/docs/installation.html
On Windows it's easier using anaconda or miniconda, just give
conda install pystan
and it will install all the needed dependencies, included the c++ compiler, then
pip install fbprophet
in Linux systems, for example, ubuntu, a simple
pip install pystan
pip install fbprophet
should work, without installing anaconda/miniconda
!pip install pystan==2.19.1.1 fbprophet ##### i was trying to install fbprophet==0.7.1 but in the presence of cmdstanpy==0.9.5 it was unable to build the wheel for fbprophet.
after executing the above command for installing pystan==2.19.1.1 collectively with fbprophet successfully installed cmdstanpy-0.9.5 fbprophet-0.7.1 note that there is no version specified for fbprophet in the command and pystan is specified with version 2.19.1.1 to avoid dependency conflicts.
This worked for me. pip3 was a must!
pip3 install pystan
pip3 install fbprophet