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.
Related
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.
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/
I have tried installing cvxpy (https://www.cvxpy.org/install/) for python. I use Python 3.8 for all my projects and am not to fond of making virtual environments where i use 3.7. Does anyone have a fix for using cvxpy on python 3.8 (I am using windows)?
Thanks!
ERROR: Command errored out with exit status 1:
ommand: 'AppData\Local\Programs\Python\Python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'AppData\\Local\\Temp\\pip-install-kehvj2di\\osqp\\setup.py'"'"'; __file__='"'"'AppData\\Local\\Temp\\pip-install-kehvj2di\\osqp\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'AppData\Local\Temp\pip-record-1u4al7gt\install-record.txt' --single-version-externally-managed --compile
cwd: AppData\Local\Temp\pip-install-kehvj2di\osqp\
-- Selecting Windows SDK version to target Windows 10.0.18362.
CMake Error at CMakeLists.txt:5 (project):
Failed to run MSBuild command:
MSBuild.exe
to get the value of VCTargetsPath:
The system cannot find the file specified
-- Configuring incomplete, errors occurred!
See also "AppData/Local/Temp/pip-install-kehvj2di/osqp/osqp_sources/build/CMakeFiles/CMakeOutput.log".
The system cannot find the file specified
CMake Error: Generator: execution of make failed. Make command was: MSBuild.exe osqpstatic.vcxproj /p:Configuration=Release /p:Platform=x64 /p:VisualStudioVersion=14.0 /v:m &&
error: [Errno 2] No such file or directory: 'osqp_sources\\build\\out\\Release\\osqp.lib'
----------------------------------------
ERROR: Command errored out with exit status 1: 'AppData\Local\Programs\Python\Python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'Local\\Temp\\pip-install-kehvj2di\\osqp\\setup.py'"'"'; __file__='"'"'AppData\\Local\\Temp\\pip-install-kehvj2di\\osqp\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'AppData\Local\Temp\pip-record-1u4al7gt\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Your problem does not seem to be the Python version, but lack of build tools. Install Microsoft Visual Build Tools and make sure they are on the PATH (so that conda can execute MSBuild.exe).
Build Tools installation instructions from cvxpy (in pptx).
When I use
pip3 install pygame
on my built in mac terminal, I expect it to return nothing or maybe something confirming the download, but instead I get
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/80/ct2vlpb17tq6fv7tk7fzrq300000gn/T/pip-install-0lflyyj6/pygame/setup.py'"'"'; __file__='"'"'/private/var/folders/80/ct2vlpb17tq6fv7tk7fzrq300000gn/T/pip-install-0lflyyj6/pygame/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/80/ct2vlpb17tq6fv7tk7fzrq300000gn/T/pip-record-riycfu31/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
That was only the error message itself, the actual output was about 400 lines long, I can post that if need be.
pygame 1.9.6 doesn't provide binary wheels for Python 3.8 for MacOS X; they provides wheels for w32/w64 and they provide wheels for MacOS X for Python 3.4-3.7.
My advice is to use Python 3.7. Python 3.8 is ok but 3rd-party modules are not yet available.