cannot install mmcv with cuda 11 - pip

i tried to imstall mmcv for cuda 11 by using this command
pip install mmcv
but got
AssertionError: MMCV==1.3.1 is used but incompatible. Please install mmcv>=1.2.4, <=1.3.
i tried to use pip install mmcv == 1.3.0
but got
ERROR: Command errored out with exit status 1:
command: /home/user/anaconda3/bin/python -u -c 'import sys, setuptools, tokenized;
sys.argv[0] = '"'"'/tmp/pip-install-zwzedoq9/mmcv-full_b791a0604b534f8b95679eed9cbac9f3
/setup.py'"'"'; __file__='"'"'/tmp/pip-install-zwzedoq9/mmcv-
full_b791a0604b534f8b95679eed9cbac9f3/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"',
open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record
/tmp/pip-record-3hdmd7th/install-record.txt --single-version-externally-managed --compile
--install-headers /home/user/anaconda3/include/python3.7m/mmcv-full
cwd: /tmp/pip-install-zwzedoq9/mmcv-full_b791a0604b534f8b95679eed9cbac9f3/

Remove the spaces around ==:
$ pip install mmcv==1.3.0
Collecting mmcv==1.3.0
Downloading mmcv-1.3.0.tar.gz (253 kB)
|████████████████████████████████| 253 kB 3.6 MB/s

Related

How to fix error "ERROR: Command errored out with exit status 1: python." when trying to install torch-sparse using pip

ERROR: Command errored out with exit status 1: 'E:\Hossein\Python\python Project\pythorch\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Asus\AppData\Local\Temp\pip-install-jhzv1wn5\torch-sparse_4aec990c4f4d470caa0dfbf1c9b31f43\setup.py'"'"'; file='"'"'C:\Users\Asus\AppData\Local\Temp\pip-install-jhzv1wn5\torch-sparse_4aec990c4f4d470caa0dfbf1c9b31f43\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Asus\AppData\Local\Temp\pip-record-dap1raq5\install-record.txt' --single-version-externally-managed --compile --install-headers 'E:\Hossein\Python\python Project\pythorch\venv\include\site\python3.9\torch-sparse' Check the logs for full command output.
WARNING: You are using pip version 21.1.2; however, version 23.0 is available.
You should consider upgrading via the 'E:\Hossein\Python\python Project\pythorch\venv\Scripts\python.exe -m pip install --upgrade pip' command.

pip install lapjv failed

I installed under Python 3.6.13
I tried to install build tools or even uninstall VS and then reinstall it, but it didn't work. This problem always exists.
Running setup.py clean for lapjv
Failed to build lapjv
Installing collected packages: lapjv
Running setup.py install for lapjv ... error
ERROR: Command errored out with exit status 1:
command: 'C:\ProgramData\Anaconda3\envs\DeepBindff\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Acer\\AppData\\Local\\Temp\\pip-install-lrnqbqb1\\lapjv_d7aa7e022bf14ef3b147d3c1a5d
34efe\\setup.py'"'"'; __file__='"'"'C:\\Users\\Acer\\AppData\\Local\\Temp\\pip-install-lrnqbqb1\\lapjv_d7aa7e022bf14ef3b147d3c1a5d34efe\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file_
_) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Acer\AppData\Local\Temp
\pip-record-pyjon60w\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\ProgramData\Anaconda3\envs\DeepBindff\Include\lapjv'
cwd: C:\Users\Acer\AppData\Local\Temp\pip-install-lrnqbqb1\lapjv_d7aa7e022bf14ef3b147d3c1a5d34efe\
Complete output (5 lines):
running install
running build
running build_ext
building 'lapjv' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\ProgramData\Anaconda3\envs\DeepBindff\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Acer\\AppData\\Local\\Temp\\pip-install-lrnqbqb1\\
lapjv_d7aa7e022bf14ef3b147d3c1a5d34efe\\setup.py'"'"'; __file__='"'"'C:\\Users\\Acer\\AppData\\Local\\Temp\\pip-install-lrnqbqb1\\lapjv_d7aa7e022bf14ef3b147d3c1a5d34efe\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__
file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record
'C:\Users\Acer\AppData\Local\Temp\pip-record-pyjon60w\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\ProgramData\Anaconda3\envs\DeepBindff\Include\lapjv' Check the logs for full command out
put.

Cant install Vowpal Wabbit on Mac

I am trying to install Vowpal Wabbit via pipenv install. But failed with the following error.
ERROR: Command errored out with exit status 1: /Users/johnchan/.local/share/virtualenvs/ATEC-s3CStNz5/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/6b/nnn57rdn6ps7h0pn78h8hnrm0000gp/T/pip-install-rjmca3xe/vowpalwabbit/setup.py'"'"'; __file__='"'"'/private/var/folders/6b/nnn57rdn6ps7h0pn78h8hnrm0000gp/T/pip-install-rjmca3xe/vowpalwabbit/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/6b/nnn57rdn6ps7h0pn78h8hnrm0000gp/T/pip-record-80qogib2/install-record.txt --single-version-externally-managed --compile --install-headers /Users/johnchan/.local/share/virtualenvs/ATEC-s3CStNz5/include/site/python3.8/vowpalwabbit Check the logs for full command output.
We just released version 8.9, which comes with binary wheels. If you try installing now it should be simpler:
pip install vowpalwabbit==8.9.0
If there are still issue can you provide the full log output?

Problem installing "fastai" on macOS 10.15

When running pip3 install fastai I get the following error:
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/9v/_09ftt2n0bv9sthtfh2j5gp80000gn/T/pip-install-zdk93g56/pynvx/setup.py'"'"'; __file__='"'"'/private/var/folders/9v/_09ftt2n0bv9sthtfh2j5gp80000gn/T/pip-install-zdk93g56/pynvx/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/9v/_09ftt2n0bv9sthtfh2j5gp80000gn/T/pip-record-7y_ev9f3/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/pynvx
Do you have any idea what the problem is?
There is another error saying I have to install CMake but I already installed it.
I do not know if this is your problem (I'm a bit of a novice with this stuff), but I also was trying to install fastai with python 3.8 on macOS 10.15 and it failed on pynvx compilation.
I was able to get fastai to install, by ignoring its dependencies (and therefore pynvx), but was still able to successfully execute the libraries that required fastai. I did this:
pip install --no-deps fastai
and then ran my scripts. Can't say I understand why this works, but in the hopes that it does for you, I'm responding.

error with exit status 1 while installing spyder terminal

ERROR: Command errored out with exit status 1: 'c:\users\admin\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Admin\AppData\Local\Temp\pip-install-z3vdlz4p\pywinpty\setup.py'"'"'; file='"'"'C:\Users\Admin\AppData\Local\Temp\pip-install-z3vdlz4p\pywinpty\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Admin\AppData\Local\Temp\pip-record-z99eojcg\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\admin\appdata\local\programs\python\python38-32\Include\pywinpty' Check the logs for full command output.
You have a 32 bit version of python installed as your isntallation directory python38-32 suggests. Looking at your error, it fails when trying to install pywinpty. A quick look at github shows that 32 bit is not supported by them. There is probably no reason for you to not have the 64 bit version of python, so simply remove the 32 bit version and install the 64 bit version. Then try again

Resources