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:\Users\justi\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\justi\\AppData\\Local\\Temp\\pip-install-da2ionqs\\pycrypto_673a5aa24bcd423c8255532c2be5ffbf\\setup.py'"'"'; __file__='"'"'C:\\Users\\justi\\AppData\\Local\\Temp\\pip-install-da2ionqs\\pycrypto_673a5aa24bcd423c8255532c2be5ffbf\\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\justi\AppData\Local\Temp\pip-record-tcjonqxh\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\justi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Include\pycrypto' Check the logs for full command output.
I do not want to install vscode or vs. This is be ran on machines that do not have these things installed. Does anyone know how to fix this without pycrypto commiting die or installing vs? Thank you.
Related
I am trying to install pycontractions either over Jupyter Lap or PyCharm but I get an error.
Also tried to install packages individually but it failed.
I am using an Anaconda3 environment with Python 3.8
command: 'c:\users\grue\anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\grue\\AppData\\Local\\Temp\\pip-install-frozt89x\\language-check_ec3c23f7676848a7a4726feaea8d1549\\setup.py'"'"'; __file__='"'"'C:\\Users\\grue\\AppData\\Local\\Temp\\pip-install-frozt89x\\language-check_ec3c23f7676848a7a4726feaea8d1549\\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\grue\AppData\Local\Temp\pip-wheel-ybyl27go'
cwd: C:\Users\grue\AppData\Local\Temp\pip-install-frozt89x\language-check_ec3c23f7676848a7a4726feaea8d1549\
Complete output (35 lines):
Traceback (most recent call last):
(DELETED THE TRACEBACK)
----------------------------------------
> ERROR: Failed building wheel for language-check
ERROR: Command errored out with exit status 1:
command: 'c:\users\grue\anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\grue\\AppData\\Local\\Temp\\pip-install-frozt89x\\pyemd_742d1a148b744173aaa0f5e9a6ad4e6f\\setup.py'"'"'; __file__='"'"'C:\\Users\\grue\\AppData\\Local\\Temp\\pip-install-frozt89x\\pyemd_742d1a148b744173aaa0f5e9a6ad4e6f\\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\grue\AppData\Local\Temp\pip-wheel-ac89795q'
cwd: C:\Users\grue\AppData\Local\Temp\pip-install-frozt89x\pyemd_742d1a148b744173aaa0f5e9a6ad4e6f\
Complete output (11 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\pyemd
copying pyemd\__about__.py -> build\lib.win-amd64-3.8\pyemd
copying pyemd\__init__.py -> build\lib.win-amd64-3.8\pyemd
running build_ext
building 'pyemd.emd' 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: Failed building wheel for pyemd
ERROR: Command errored out with exit status 1:
command: 'c:\users\grue\anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\grue\\AppData\\Local\\Temp\\pip-install-frozt89x\\pyemd_742d1a148b744173aaa0f5e9a6ad4e6f\\setup.py'"'"'; __file__='"'"'C:\\Users\\grue\\AppData\\Local\\Temp\\pip-install-frozt89x\\pyemd_742d1a148b744173aaa0f5e9a6ad4e6f\\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\grue\AppData\Local\Temp\pip-record-a9qsz6i5\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\grue\anaconda3\Include\pyemd'
cwd: C:\Users\grue\AppData\Local\Temp\pip-install-frozt89x\pyemd_742d1a148b744173aaa0f5e9a6ad4e6f\
Complete output (11 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\pyemd
copying pyemd\__about__.py -> build\lib.win-amd64-3.8\pyemd
copying pyemd\__init__.py -> build\lib.win-amd64-3.8\pyemd
running build_ext
building 'pyemd.emd' 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:\users\grue\anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\grue\\AppData\\Local\\Temp\\pip-install-frozt89x\\pyemd_742d1a148b744173aaa0f5e9a6ad4e6f\\setup.py'"'"'; __file__='"'"'C:\\Users\\grue\\AppData\\Local\\Temp\\pip-install-frozt89x\\pyemd_742d1a148b744173aaa0f5e9a6ad4e6f\\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\grue\AppData\Local\Temp\pip-record-a9qsz6i5\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\grue\anaconda3\Include\pyemd' Check the logs for full command output.
Please refer the following answer:
I have been able to successfully install pycontractions for Python 3.7 on MacOS.
https://stackoverflow.com/a/72476591/12136004
This issue is described here at the issue site of this package. This is the pertinent advice:
This is actually a language-check issue. To install pycontractions, Java 8 must be used until language-check fixes their installer script:
$ sudo apt install openjdk-8-jdk
$ sudo update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
$ pip install language-check
$ pip install pycontractions
I'd suggest doing those last two in your JupyterLab notebok and putting % in front of them as that enables the new magic that installs to the right place for the notebook.
Situation:
I had this error
File "D:\Documents\Python_projects\stable_env\lib\site-packages\pyrebase\pyrebase.py", line 23, in <module>
from Crypto.PublicKey import RSA
ModuleNotFoundError: No module named 'Crypto'
Solution: I tried pip3 install pyrebase
Problem: ERROR: Failed building wheel for pycryptodome
Moving to d:\documents\python_projects\stable_env\lib\site-packages\crypto\
from d:\documents\python_projects\stable_env\lib\site-packages\~rypto
Moving to d:\documents\python_projects\stable_env\lib\site-packages\pycryptodome-3.10.4.dist-info\
from d:\documents\python_projects\stable_env\lib\site-packages\~ycryptodome-3.10.4.dist-info
ERROR: Command errored out with exit status 1: 'd:\documents\python_projects\stable_env\scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\
aymer\\AppData\\Local\\Temp\\pip-install-yxkp7g76\\pycryptodome_a53664fc52004d7f8956259824cec980\\setup.py'"'"'; __file__='"'"'C:\\Users\\aymer\\AppData\\Local\\Temp\\pip-install-yxkp7g76
\\pycryptodome_a53664fc52004d7f8956259824cec980\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools impo
rt setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\aymer\AppData\Local\Temp\
pip-record-na3bmx_0\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\documents\python_projects\stable_env\include\site\python3.7\pycryptodome' Check
the logs for full command output.
If I try to pip3 install pycrypto, I have the same error.
BUT, they propose me 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/
When I try to install it, it takes too much space for my C:.
I'm not sure what I can try now to debug this.
I'm getting an error installing the zbar module. I think the error is related to authorization. How can I solve it?
I wrote pip install zbar.
C:\Users\emiry>pip install zbar
Collecting zbar
Using cached zbar-0.10.zip (31 kB)
Building wheels for collected packages: zbar
Building wheel for zbar (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\emiry\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\emiry\\AppData\\Local\\Temp\\pip-install-6i6ygv4e\\zbar_700c50e90f604c658bec553c6d356553\\setup.py'"'"'; __file__='"'"'C:\\Users\\emiry\\AppData\\Local\\Temp\\pip-install-6i6ygv4e\\zbar_700c50e90f604c658bec553c6d356553\\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\emiry\AppData\Local\Temp\pip-wheel-spwm2dxx'
cwd: C:\Users\emiry\AppData\Local\Temp\pip-install-6i6ygv4e\zbar_700c50e90f604c658bec553c6d356553\
Complete output (5 lines):
running bdist_wheel
running build
running build_ext
building 'zbar' 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: Failed building wheel for zbar
Running setup.py clean for zbar
Failed to build zbar
Installing collected packages: zbar
Running setup.py install for zbar ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\emiry\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\emiry\\AppData\\Local\\Temp\\pip-install-6i6ygv4e\\zbar_700c50e90f604c658bec553c6d356553\\setup.py'"'"'; __file__='"'"'C:\\Users\\emiry\\AppData\\Local\\Temp\\pip-install-6i6ygv4e\\zbar_700c50e90f604c658bec553c6d356553\\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\emiry\AppData\Local\Temp\pip-record-7pxl18hx\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\emiry\AppData\Local\Programs\Python\Python39\Include\zbar'
cwd: C:\Users\emiry\AppData\Local\Temp\pip-install-6i6ygv4e\zbar_700c50e90f604c658bec553c6d356553\
Complete output (5 lines):
running install
running build
running build_ext
building 'zbar' 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:\Users\emiry\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\emiry\\AppData\\Local\\Temp\\pip-install-6i6ygv4e\\zbar_700c50e90f604c658bec553c6d356553\\setup.py'"'"'; __file__='"'"'C:\\Users\\emiry\\AppData\\Local\\Temp\\pip-install-6i6ygv4e\\zbar_700c50e90f604c658bec553c6d356553\\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\emiry\AppData\Local\Temp\pip-record-7pxl18hx\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\emiry\AppData\Local\Programs\Python\Python39\Include\zbar' Check the logs for full command output.
WARNING: You are using pip version 21.2.3; however, version 21.2.4 is available.
You should consider upgrading via the 'C:\Users\emiry\AppData\Local\Programs\Python\Python39\python.exe -m pip install --upgrade pip' command.
You need to install MS C++ Visual Build tools with Studio. This is link:- https://visualstudio.microsoft.com/vs/older-downloads/
I am trying to install cdlib package in python but some error is occurring. Please help me to solve this problem. The error is given below
ERROR: Command errored out with exit status 1:
ERROR: Command errored out with exit status 1: 'c:\python\python385\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\abc\\AppData\\Local\\Temp\\pip-install-iooglvcp\\gensim_fd954cc04c6c41f68764bcbd9eee0ddc\\setup.py'"'"'; __file__='"'"'C:\\Users\\abc\\AppData\\Local\\Temp\\pip-install-iooglvcp\\gensim_fd954cc04c6c41f68764bcbd9eee0ddc\\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\abc\AppData\Local\Temp\pip-record-bnge2snj\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\python\python385\Include\gensim' Check the logs for full command output.
Are you sure you are using a dated version of pip?
If not, pip3 should be able to install cdlib package
I tried to install bluepy on Ubontu 18.04 in venv, but something went wrong and I can't figure out what. Here is the output. How fix it?
ERROR: Command errored out with exit status 1: /home/kris/PycharmProjects/testProj/venv/bin/python -u -c
'import io, os, sys, setuptools, tokenize;
sys.argv[0] = '"'"'/tmp/pip-install-6tx3k3a2/bluepy_e86c89a21017447db6c3b0b710501382/setup.py'"'"';
__file__='"'"'/tmp/pip-install-6tx3k3a2/bluepy_e86c89a21017447db6c3b0b710501382/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-bxe7qhpt/install-record.txt --single-version-externally-managed --compile --install-headers /home/kris/PycharmProjects/testProj/venv/include/site/python3.6/bluepy Check the logs for full command output.