error with exit status 1 while installing spyder terminal - pip

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

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.

cannot install mmcv with cuda 11

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

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.

Having trouble installing mpi4py with Intel MPI

The title says it all. I have Intel MPI installed on my AWS instance and have sourced it to activate, and which mpiexec works and tells me its the Intel MPI. I don't have any other MPI installed right now. $MPICC is set as well.
Running
pip install mpi mpi4py --no-cache-dir
leads to the following error (this is the last paragraph, see also full error message):
ERROR: Command errored out with exit status 1: /home/ubuntu/miniconda3/envs/IQS/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1k4oxnqu/mpi4py/setup.py'"'"'; __file__='"'"'/tmp/pip-install-1k4oxnqu/mpi4py/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-dj568ctj/install-record.txt --single-version-externally-managed --compile --install-headers /home/ubuntu/miniconda3/envs/IQS/include/python3.8/mpi4py Check the logs for full command output.
I think I figured it out. I had linked the wrong mpicc, the one from source and not compiled. I realized this when I did 'which mpicc'.

Resources