Issue with activating virtualenv
For me it works when I do these steps: Go to the directory/folder that you want run virtualenv .env then run source .env/bin/activate
For me it works when I do these steps: Go to the directory/folder that you want run virtualenv .env then run source .env/bin/activate
I was able to solve this problem just by running this in a command window with admin privileges: activate <env-name> conda update pip After that, exports of the available packages on my environment contain again both the packages installed with conda and those with pip. I suspect I may have caused this package export problem … Read more
As jinghli notes, there isn’t currently a reliable way to get the dependency of an arbitrary PyPi package remotely without needing to download it completely. And in fact the dependencies sometimes depend on your environment, so an approach like Brian’s of executing setup.py code is needed in the general case. The way the Python ecosystem … Read more
I run with multiple Python versions and thus multiple pip versions as well. Everytime, however, you update pip, you’ll replace the standard pip command with the version you updated. So even pip3 install –upgrade pip will put a /usr/local/bin/pip in your system, messing up the Python 2 version. Instead, I run pip as an (executable) … Read more
pip uninstall pip will work
You need to import collections.abc Here the link to doc >>> from collections import MutableMapping Traceback (most recent call last): File “<stdin>”, line 1, in <module> ImportError: cannot import name ‘MutableMapping’ from ‘collections’ (/usr/lib/python3.10/collections/__init__.py) >>> from collections.abc import MutableMapping Deprecated since version 3.3, will be removed in version 3.10: Moved Collections Abstract Base Classes to … Read more
This question has been answered on the serverfaults forum: Here is a link to the question. You need to add the following line to your ~/.bash_profile or ~/.bashrc file. export PATH=”/usr/local/bin:$PATH” You will then need to profile, do this by either running the command: source ~/.bash_profile Or by simply closing your terminal and opening a … Read more
Try This, CMD as Administrator and run the following: pip install pipwin pipwin install pyaudio
We had a similar need at my company. Basically how can we upload “closed source” packages to an index while being able to install them as if they were on PyPI? We have sponsored a project called devpi which acts as a PyPI cache (packages you access from PyPI will be cached on your server) … Read more
I had Python 3.10 and had the same error installing psutil from pip. I fixed the problem by installing an older version of pip using the command: pip install pip==21.3.1