When trying to use a cmd in visual studio code Version: 1.53.2 (user setup)
Chrome: 87.0.4280.141
Node.js: 12.18.3
OS: Windows_NT x64 10.0.19041
Python version 3.9.2..
This is my error, I have been at stand still for a day..pls help, Thanks Devs
ERROR: Command errored out with exit status 1: 'c:\users\cash\coinview\.venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\CASH\\AppData\\Local\\Temp\\pip-install-zjh5g7bp\\ta-lib\\setup.py'"'"'; __file__='"'"'C:\\Users\\CASH\\AppData\\Local\\Temp\\pip-install-zjh5g7bp\\ta-lib\\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\CASH\AppData\Local\Temp\pip-record-jzlcw_4l\install-record.txt' --single-version-externally-managed --compile --install-headers
'c:\users\cash\coinview\.venv\include\site\python3.9\TA-Lib' Check the logs for full command output.
You need to install the ta-lib native library before you can install the Python module that adds a Python API to that library.
I tried installing this module on my Mac before I installed the native library. I got a very similar error:
ERROR: Command errored out with exit status 1: /Users/steve/envs/foo/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/y2/84p16ph920x6j2g2glfb52pw0000gp/T/pip-install-U7_tLW/ta-lib/setup.py'"'"'; __file__='"'"'/private/var/folders/y2/84p16ph920x6j2g2glfb52pw0000gp/T/pip-install-U7_tLW/ta-lib/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/y2/84p16ph920x6j2g2glfb52pw0000gp/T/pip-record-OIbYo6/install-record.txt --single-version-externally-managed --compile --install-headers /Users/steve/envs/foo/include/site/python2.7/TA-Lib Check the logs for full command output.
Then I did:
brew install ta-lib
to install the native library. After doing that, the installation of the Python library worked just fine.
I don't know Windows, so I can't tell you how to install the native library. It seems very likely, however, that that's the solution to your problem, just like it was mine.
Related
I am trying to pip install geopandas and keep getting an exit 1 status error. Then I try to pip install GDAL, but still get the same error. I can pip install other libraries just fine, so don't know where this is coming from. Any ideas?
ERROR: Failed building wheel for gdal
ERROR: Command errored out with exit status 1:
command: 'C:\Users\ Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ \AppData\\Local\\Temp\\pip-install-oe6w8_hs\\gdal_c05dbd958e124d1a91f8d136cee3c342\\setup.py'"'"'; __file__='"'"'C:\\Users\\ \AppData\\Local\\Temp\\pip-install-oe6w8_hs\\gdal_c05dbd958e124d1a91f8d136cee3c342\\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\ AppData\Local\Temp\pip-record-b95x1co9\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\ Anaconda3\Include\gdal'
cwd: C:\Users\ AppData\Local\Temp\pip-install-oe6w8_hs\gdal_c05dbd958e124d1a91f8d136cee3c342\
ERROR: Command errored out with exit status 1: 'C:\Users\ Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ \AppData\\Local\\Temp\\pip-install-oe6w8_hs\\gdal_c05dbd958e124d1a91f8d136cee3c342\\setup.py'"'"'; __file__='"'"'C:\\Users\\ \AppData\\Local\\Temp\\pip-install-oe6w8_hs\\gdal_c05dbd958e124d1a91f8d136cee3c342\\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\ AppData\Local\Temp\pip-record-b95x1co9\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\ Anaconda3\Include\gdal' Check the logs for full command output.
Considering you have installed anaconda, I would recommend following instructions from the geopandas project: https://geopandas.org/getting_started/install.html
From my experience, setting up a work environment with conda-forge repositories as a default sets a very convenient context for working with geopandas.
I have already installed the c++ tools and updated the tools by pip install --upgrade setuptools but installing of mathutils does not work
Command errored out with exit status 1: 'c:\users\33749\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\33749\AppData\Local\Temp\pip-install-jbsp1j3h\mathutils_62d38e7d44a44d75978e68055dbcc440\setup.py'"'"'; file='"'"'C:\Users\33749\AppData\Local\Temp\pip-install-jbsp1j3h\mathutils_62d38e7d44a44d75978e68055dbcc440\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\33749\AppData\Local\Temp\pip-record-bc4w9hy_\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\33749\appdata\local\programs\python\python39\Include\mathutils' Check the logs for full command outpu
Since the module "mathutils" is written in portable C, it needs c++ tools to compile it. therefore, after I installed the VS from the link provided in the VS Code terminal and restarted the computer, the module "mathutils" can be installed.
I get the below error when using pip install scikit-image. Note I have got Microsoft VS installed.
What is causing this?
not sure if it is an issue with numpy?
Thanks
ERROR: Command errored out with exit status 1:
command: 'c:\users\student\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Student\\AppData\\Local\\Temp\\pip-install-2dp2c1cs\\scikit-image_610bd9ad5a3b4de0a232ce6491f9d39a\\setup.py'"'"'; __file__='"'"'C:\\Users\\Student\\AppData\\Local\\Temp\\pip-install-2dp2c1cs\\scikit-image_610bd9ad5a3b4de0a232ce6491f9d39a\\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\Student\AppData\Local\Temp\pip-record-r78qb75l\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\student\appdata\local\programs\python\python39\Include\scikit-image'
cwd: C:\Users\Student\AppData\Local\Temp\pip-install-2dp2c1cs\scikit-
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\student\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Student\\AppData\\Local\\Temp\\pip-install-2dp2c1cs\\scikit-image_610bd9ad5a3b4de0a232ce6491f9d39a\\setup.py'"'"'; __file__='"'"'C:\\Users\\Student\\AppData\\Local\\Temp\\pip-install-2dp2c1cs\\scikit-image_610bd9ad5a3b4de0a232ce6491f9d39a\\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\Student\AppData\Local\Temp\pip-record-r78qb75l\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\student\appdata\local\programs\python\python39\Include\scikit-image' Check the logs for full command output.
According to this issue on GitHub, it is still not available on Python 3.9.
They provide a few solutions:
conda install -c conda-forge scikit-learn with Conda
pip install --pre -U scikit-learn on windows
For python==3.10.4:
Just upgrade your pip command in your CMD as administrator, and everything will work fine.
python -m pip install –-upgrade pip
So I tried to pip install pycaw so I could use, from pycaw.pycaw import AudioUtilities, in my program but when I tried to pip install with pip install pycaw I get an error saying
ERROR: Command errored out with exit status 1: 'C:\Users\Carme\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Carme\\AppData\\Local\\Temp\\pip-install-c302u53r\\comtypes\\setup.py'"'"'; __file__='"'"'C:\\Users\\Carme\\AppData\\Local\\Temp\\pip-install-c302u53r\\comtypes\\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\Carme\AppData\Local\Temp\pip-record-l9tmjphk\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\Carme\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Include\comtypes' Check the logs for full command output.
Can anyone tell me how to fix this?
Check that you have the Visual Studio C++ build tools installed:
https://visualstudio.microsoft.com/visual-cpp-build-tools/
When I try to install scrapy I get the following error that I do not know how to fix it:
ERROR: Command errored out with exit status 1:
'c:\python\python38\python.exe' -u -c 'import sys, setuptools,
tokenize; sys.argv[0] =
'"'"'C:\Users\A\AppData\Local\Temp\pip-install-jlhjh6ae\Twisted\setup.py'"'"';
file='"'"'C:\Users\A\AppData\Local\Temp\pip-install-jlhjh6ae\Twisted\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\A\AppData\Local\Temp\pip-record-6xcmyyez\install-record.txt'
--single-version-externally-managed --compile --install-headers 'c:\python\python38\Include\Twisted' Check the logs for full command
output.
Recommended way to install scrapy on windows - using Anaconda python distrubution.