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.
Related
I'm trying to install Odoo v13 dependencies, but it fail with the next error.
pip install -r ..\Odoo\13\odoo\requirements.txt
Seeing this, I tryed to install manually greenlet v0.4.10 (which is the version I need)
And It says that the problem is with Microsoft Visual C++ Build Tools. I tryed to install It and this happends (I reinstalled Microsoft Visual Studio Installer and Microsoft Visual C++ 2015):
pip install greenlet==0.4.0.
It shows me the next output:
Collecting greenlet==0.4.10
Using cached greenlet-0.4.10.zip (82 kB)
Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for greenlet, since package 'wheel' is not installed.
Installing collected packages: greenlet
Running setup.py install for greenlet ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\aresua\documents\vscodeprojects\odoo-13-addons\.venv\scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\aresua\\AppData\\Local\\Temp\\pip-install-xxf1xvcp\\greenlet_2223126928944440ab06138578a156c0\\setup.py'"'"'; __file__='"'"'C:\\Users\\aresua\\AppData\\Local\\Temp\\pip-install-xxf1xvcp\\greenlet_2223126928944440ab06138578a156c0\\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\aresua\AppData\Local\Temp\pip-record-f2n6j60w\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\aresua\documents\vscodeprojects\odoo-13-addons\.venv\include\site\python3.6\greenlet'
cwd: C:\Users\aresua\AppData\Local\Temp\pip-install-xxf1xvcp\greenlet_2223126928944440ab06138578a156c0\
Complete output (5 lines):
running install
running build
running build_ext
building 'greenlet' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\aresua\documents\vscodeprojects\odoo-13-addons\.venv\scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\aresua\\AppData\\Local\\Temp\\pip-install-xxf1xvcp\\greenlet_2223126928944440ab06138578a156c0\\setup.py'"'"'; __file__='"'"'C:\\Users\\aresua\\AppData\\Local\\Temp\\pip-install-xxf1xvcp\\greenlet_2223126928944440ab06138578a156c0\\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\aresua\AppData\Local\Temp\pip-record-f2n6j60w\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\aresua\documents\vscodeprojects\odoo-13-addons\.venv\include\site\python3.6\greenlet' Check the logs for full command output.
According to this, if you're using Windows, install MS visual C++ with: https://aka.ms/vs/16/release/vs_buildtools.exe
Then restart your PC.
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 in windows OS. I am using google colab ,I get these error ,when I run the code .I find this link [https://lxml.de/installation.html]. I dont familiar with Linux,so how to resolve it just in google colab. Any hint would be appreciated.
enter image description here
!pip install -q kaggle
!pip install -q kaggle-cli
Building wheel for lxml (setup.py) ... error
ERROR: Failed building wheel for lxml
Running setup.py install for lxml ... 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-g0j7kmu8/lxml_93339675a71644a6aa1498a90b070e38/setup.py'"'"'; file='"'"'/tmp/pip-install-g0j7kmu8/lxml_93339675a71644a6aa1498a90b070e38/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-u1erza7w/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7/lxml Check the logs for full command output.
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
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.