How to fix error "ERROR: Command errored out with exit status 1: python." when trying to install torch-sparse using pip - 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.

Related

Google Collab- Fbprophet installation error

Hello stack overflow community,
I'm trying to import Prophet from fbProphet and I got an error message so I tried to install fbProphet and received another error message.
Can someone help me please?
Building wheel for fbprophet (setup.py) ... error
ERROR: Failed building wheel for fbprophet
Running setup.py clean for fbprophet
Failed to build fbprophet
Installing collected packages: fbprophet
Running setup.py install for fbprophet ... error
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6nhgip9q/fbprophet_f5a0de9add594fa0a47241ba6cb37d86/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6nhgip9q/fbprophet_f5a0de9add594fa0a47241ba6cb37d86/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 /tmp/pip-record-gqbipw4r/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/fbprophet Check the logs for full command output.
!pip install fbprophet

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.

pip install error when I install fbprophet

(I'm not good at English sorry)
I have an error when I install fbprophet for windows command.
I already installed pystan and cython.
I use Windows 10, python 3.9 version.
maybe, Am I having a problem with the compiler?
The error comment is (korea language in error is not really important thing), -->
=== error in building with wheel ===
ERROR: Command errored out with exit status 1:
command: 'c:\users\kstar\appdata\local\programs\python\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\kstar\AppData\Local\Temp\pip-install-la81h33s\fbprophet_b85d314a94fb4910b19f0b36b012fb78\setup.py'"'"'; file='"'"'C:\Users\kstar\AppData\Local\Temp\pip-install-la81h33s\fbprophet_b85d314a94fb4910b19f0b36b012fb78\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'"'"'))' bdist_wheel -d 'C:\Users\kstar\AppData\Local\Temp\pip-wheel-b98qkky1'
cwd: C:\Users\kstar\AppData\Local\Temp\pip-install-la81h33s\fbprophet_b85d314a94fb4910b19f0b36b012fb78
Complete output (44 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib
creating build\lib\fbprophet
creating build\lib\fbprophet\stan_model
Traceback (most recent call last):
.
.
.
=== error in running setup.py ===
ERROR: Command errored out with exit status 1:
command: c:\users\kstar\appdata\local\programs\python\python39\python.exe -u -c import io, os, sys, setuptools, tokenize; sys.argv[0] = C:\Users\kstar\AppData\Local\Temp\pip-install-la81h33s\fbprophet_b85d314a94fb4910b19f0b36b012fb78\setup.py; file=C:\Users\kstar\AppData\Local\Temp\pip-install-la81h33s\fbprophet_b85d314a94fb4910b19f0b36b012fb78\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\kstar\AppData\Local\Temp\pip-record-avm6oqpp\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\kstar\appdata\local\programs\python\python39\Include\fbprophet'
cwd: C:\Users\kstar\AppData\Local\Temp\pip-install-la81h33s\fbprophet_b85d314a94fb4910b19f0b36b012fb78
Complete output (288 lines):
running install
running build
running build_py
creating build
creating build\lib
creating build\lib\fbprophet
creating build\lib\fbprophet\stan_model
INFO:pystan:COMPILING THE C++ CODE FOR MODEL anon_model_f5236004a3fd5b8429270d00efcc0cf9 NOW.
WARNING:pystan:MSVC compiler is not supported
stanfit4anon_model_f5236004a3fd5b8429270d00efcc0cf9_296405994888268896.cpp
c:\users\kstar\appdata\local\programs\python\python39\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
following has worked for me before:
pip install localpip
localpip install fbprophet
from fbprophet import Prophet

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?

Resources