When use pip version 6.0+ to install a package, I got an error like the title.
I find it's mainly because a dependency was installed using an earlier version of pip. To fix it, try pip install --upgrade pip followed by using pip to install the package again.
Related
I wrote pip install ppaquette-gym-doom
and it gives me a
error: legacy:install-failure
I tried pip install gensim pip install dlib --pre python -m pip install --upgrade pillow
python -m pip install --upgrade pip and python -m pip isntall --upgrade wheel
those codes didnt solved my problem
I am not familiar with gym-doom but based on some quick research it looks like you are getting this error because "ppaquette-gym-doom" is an obsolete version. From the github page "Note: This environment is not maintained anymore, and uses an old version of VizDoom."
It seems like the new version is simply "pip install gym-doom". This will also require something called Vizdoom.
Again this is based on quick research. I have never used these libraries.
I had used tensorflow before this time.Now,tensorflow is installed but it cannot be imported.Moreover,it cannot be installed again.What happened in tensorflow?I searched many solutions for this error but I cannot find.When tensorflow is installed with pip,this error appears.
Unable to create process using 'C:\Users\hp\Anaconda3\envs\tf-gpu\python.exe C:\Users\hp\Anaconda3\envs\tf-gpu\Scripts\pip-script.py install tensorfow'
And when it is installed with anaconda,it can be installed,but cannot be imported,"ModuleNotFoundError: No module named 'tensorflow'".How can I solve this trouble to reuse tensorflow without reinstalling anaconda ,please help me.Thanks a lot in advance!!
You can uninstall and reinstall the pip:
python -m pip uninstall pip
python -m pip install --upgrade pip
or update pip:
python -m pip install -upgrade pip
This happened out of the blue, I was able to import cv2 but now I get 'AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline' (most likely due to a circular import)' error when I import it. The things I tried:
1-uninstalling and installing opencv.
2-In cmd, I typed "pip list" and opencv-python package is listed. I ran "python" command and tried importing cv2 but I get the same error. Please help.
I also had the same problem with opencv-python-4.6.0.66
I solved this error by just downgrading opencv. you can follow this command.
pip install opencv-python==4.5.5.64
Hope this will help you.
pip uninstall opencv-python
pip uninstall opencv-contrib-python
pip uninstall opencv-contrib-python-headless
and then
pip3 install opencv-contrib-python==4.5.5.62
Same problem here when I had:
> pip list
opencv-contrib-python 4.6.0.66
opencv-python 4.5.4.58
Upgraded opencv-python to 4.6.0.66 (> pip install opencv-python==4.6.0.66) and that fixed it.
Updating the package https://pypi.org/project/opencv-python/ to version 4.6.0.66 worked for me
Upgrading opencv solved the issue for me: !pip install opencv-python==4.6.0.66
I changed my anaconda environment but it caused some other bugs. I just uninstall anaconda and installed it. It works now
I also had the same problem. I tried some of the solutions. Also, I had "ImportError: cannot import name '_registerMatType' from 'cv2.cv2' (C:\Users\user_name\anaconda3\envs\tf_od\lib\site-packages\cv2\cv2.cp39-win_amd64.pyd)" this error.
And I resolve the issue by checking OpenCV libraries installed on my Anaconda Environment by
pip list
opencv-contrib-python 4.6.0.66
opencv-python 4.6.0.66
opencv-python-headless 4.5.2.52
I think everyone may have a different combination of these versions and others. So you should check and uninstall all OpenCV libs. And then install opencv-python.
In my case:
pip uninstall opencv-contrib-python
pip uninstall opencv-python
pip uninstall opencv-python-headless
pip install opencv-python
As of February 2023, had the same error with opencv-python version 3.4.4.19. Upgrading to version 3.4.5.20 solved the problem.
I have created a conda environment where I am installing all the stuff I need.
I already had installed the pandas library, but I need to upgrade it to the latest version.
However, when I try pip3 install --upgrade pandas I get the following error:
Found existing installation: pandas 0.15.2
Cannot uninstall 'pandas'. 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.
I have tried sudo apt-get remove pandas, but this get me a message saying that the pandas package cannot be found.
In case is relevant, I am in Ubuntu 16.04 and using python 3.6.3
Though I'm unable to reproduce the error, you can try:
1) Reduce version
pip install --upgrade --force-reinstall pip==18.0
Try to re-install package
pip install xxx --disable-pip-version-check
At last, recover the latest version for pip
pip install --upgrade pip
2) pip install -I==18.0 -r requirements.txt
3) Try removing manually from 'site-packages'
These solutions were found here
So, Iere is what I encountered:
I try to install pip install lxml under windows, python3.5 (anaconda3), and I have the error saying that
running build_ext
building 'lxml.etree' extension
error: Unable to find vcvarsall.bat
so of course I downloaded lxml for http://www.lfd.uci.edu/~gohlke/pythonlibs, and installed without a problem using the .whl file, and then I try to install a package that depends on lxml, pip is trying to build lxml again and does not aware it already has been installed....
Second problem, I upgraded pip to 8.1.2, and when I do pip --version i have 8.1.2. however, when I try to pip install something, I still get the message:
You are using pip version 8.0.0, however version 8.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
anyone had the same problem? so strange, before I never had such issues.
Update
I think i found the answer, i have ignore-installed=true in my pip.ini, dont know how this was set, when i delete the line, everything worked