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.
Related
This question already has answers here:
Error "Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)"
(36 answers)
Error while installing lxml through pip: Microsoft Visual C++ 14.0 is required
(8 answers)
Pip error even Microsoft Visual C++ 14.0 is installed
(4 answers)
How to solve "error: Microsoft Visual C++ 14.0 or greater is required" when installing Python packages?
(9 answers)
Closed last year.
how to fix
Collecting pyodbc
Using cached pyodbc-4.0.32.tar.gz (280 kB)
Preparing metadata (setup.py) ... doneBuilding wheels for collected packages:
pyodbc
Building wheel for pyodbc (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Hp\AppData\Local\Programs\Python\Python310\python.exe' -u
-c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Hp\AppData\Local\Temp\pip-install-pduzvow4\pyodbc_6a2cb9d552294608a526333bd147a8c4\setup.py'"'"'; file='"'"'C:\Users\Hp\AppData\Local\Temp\pip-install-pduzvow4\pyodbc_6a2cb9d552294608a526333bd147a8c4\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\Hp\AppData\Local\Temp\pip-wheel-ukv030lp'
cwd: C:\Users\Hp\AppData\Local\Temp\pip-install-pduzvow4\pyodbc_6a2cb9d552294608a526333bd147a8c4
Complete output (5 lines):
running bdist_wheel
running build
running build_ext
building 'pyodbc' 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 pyodbc
Running setup.py clean for pyodbc
Failed to build pyodbc
Installing collected packages: pyodbc
Running setup.py install for pyodbc
... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Hp\AppData\Local\Programs\Python\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Hp\AppData\Local\Temp\pip-install-pduzvow4\pyodbc_6a2cb9d552294608a526333bd147a8c4\setup.py'"'"'; file='"'"'C:\Users\Hp\AppData\Local\Temp\pip-install-pduzvow4\pyodbc_6a2cb9d552294608a526333bd147a8c4\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\Hp\AppData\Local\Temp\pip-record-6iqibsw_\innally-managed --compile --install-headers 'C:\Users\Hp\AppData\Local\Programs\Python\Python310\Include\pyodbc'
cwd: C:\Users\Hp\AppData\Local\Temp\pip-install-pduzvow4\pyodbc_6a2cb9d552294608a526333bd147a8c4
Complete output (5 lines):
running install
running build
running build_ext
building 'pyodbc' 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\Hp\AppData\Local\Programs\Python\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Hp\AppData\Local\Temp\pip-install-pduzvow4\pyodbc_6a2cb9d552294608a526333bd147a8c4\setup.py'"'"'; file='"'"'C:\Users\Hp\AppData\Local\Temp\pip-install-pduzvow4\pyodbc_6a2cb9d552294608a526333bd147a8c4\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\Hp\AppData\Local\Temp\pip-record-6iqibsw_\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Hp\AppData\Local\Programs\Python\Python310\Include\pyodbc' Check the logs for full command output.
PS C:\Users\Hp\Desktop\testing> pip install pyodbc
Collecting pyodbc
Using cached pyodbc-4.0.32.tar.gz (280 kB)
Preparing metadata (setup.py) ... doneBuilding wheels for collected packages:
pyodbc
Building wheel for pyodbc (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Hp\AppData\Local\Programs\Python\Python310\python.exe' -u
-c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Hp\AppData\Local\Temp\pip-install-qh0u8ubs\pyodbc_065570aa41d54e39975cd28d9b1bd1cd\setup.py'"'"'; file='"'"'C:\Users\Hp\AppData\Local\Temp\pip-install-qh0u8ubs\pyodbc_065570aa41d54e39975cd28d9b1bd1cd\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\Hp\AppData\Local\Temp\pip-wheel-hgzmffmb'
cwd: C:\Users\Hp\AppData\Local\Temp\pip-install-qh0u8ubs\pyodbc_065570aa41d54e39975cd28d9b1bd1cd
Complete output (5 lines):
running bdist_wheel
running build
running build_ext
building 'pyodbc' 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 pyodbc
Running setup.py clean for pyodbc
Failed to build pyodbc
Installing collected packages: pyodbc
Running setup.py install for pyodbc
... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Hp\AppData\Local\Programs\Python\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Hp\AppData\Local\Temp\pip-install-qh0u8ubs\pyodbc_065570aa41d54e39975cd28d9b1bd1cd\setup.py'"'"'; file='"'"'C:\Users\Hp\AppData\Local\Temp\pip-install-qh0u8ubs\pyodbc_065570aa41d54e39975cd28d9b1bd1cd\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\Hp\Anally-managed --compile --install-headers 'C:\Users\Hp\AppData\Local\Programs\Python\Python310\Include\pyodbc'
cwd: C:\Users\Hp\AppData\Local\Temp\pip-install-qh0u8ubs\pyodbc_065570aa41d54e39975cd28d9b1bd1cd
Complete output (5 lines):
running install
running build
running build_ext
building 'pyodbc' 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\Hp\AppData\Local\Programs\Python\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Hp\AppData\Local\Temp\pip-install-qh0u8ubs\pyodbc_065570aa41d54e39975cd28d9b1bd1cd\setup.py'"'"'; file='"'"'C:\Users\Hp\AppData\Local\Temp\pip-install-qh0u8ubs\pyodbc_065570aa41d54e39975cd28d9b1bd1cd\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\Hp\AppData\Local\Temp\pip-record-_x_xavqf\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Hp\AppData\Local\Programs\Python\Python310\Include\pyodbc' Check the logs for full command output.
PS C:\Users\Hp\Desktop\testing> pip install pyodbc
Collecting pyodbc
Using cached pyodbc-4.0.32.tar.gz (280 kB)
Preparing metadata (setup.py) ... doneBuilding wheels for collected packages:
pyodbc
Building wheel for pyodbc (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Hp\AppData\Local\Programs\Python\Python310\python.exe' -u
-c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Hp\AppData\Local\Temp\pip-install-z16aosoo\pyodbc_04a9c3beea8a421ea0d1796cca1ec22f\setup.py'"'"'; file='"'"'C:\Users\Hp\AppData\Local\Temp\pip-install-z16aosoo\pyodbc_04a9c3beea8a421ea0d1796cca1ec22f\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\Hp\AppData\Local\Temp\pip-wheel-0xd6a19l'
cwd: C:\Users\Hp\AppData\Local\Temp\pip-install-z16aosoo\pyodbc_04a9c3beea8a421ea0d1796cca1ec22f
Complete output (5 lines):
running bdist_wheel
running build
running build_ext
building 'pyodbc' 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 pyodbc
Running setup.py clean for pyodbc
Failed to build pyodbc
Installing collected packages: pyodbc
Running setup.py install for pyodbc
... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Hp\AppData\Local\Programs\Python\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Hp\AppData\Local\Temp\pip-install-z16aosoo\pyodbc_04a9c3beea8a421ea0d1796cca1ec22f\setup.py'"'"'; file='"'"'C:\Users\Hp\AppData\Local\Temp\pip-install-z16aosoo\pyodbc_04a9c3beea8a421ea0d1796cca1ec22f\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\Hp\AppData\Local\Temp\pip-record-0mfty8o5\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Hp\AppData\Local\Programs\Python\Python310\Include\pyodbc'
cwd: C:\Users\Hp\AppData\Local\Temp\pip-install-z16aosoo\pyodbc_04a9c3beea8a421ea0d1796cca1ec22f
Complete output (5 lines):
running install
running build
running build_ext
building 'pyodbc' 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\Hp\AppData\Local\Programs\Python\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Hp\AppData\Local\Temp\pip-install-z16aosoo\pyodbc_04a9c3beea8a421ea0d1796cca1ec22f\setup.py'"'"'; file='"'"'C:\Users\Hp\AppData\Local\Temp\pip-install-z16aosoo\pyodbc_04a9c3beea8a421ea0d1796cca1ec22f\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\Hp\AppData\Local\Temp\pip-record-0mfty8o5\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Hp\AppData\Local\Programs\Python\Python310\Include\pyodbc' Check the logs for full command output.
I believe pyodbc requires c++ to compile. That's why it's telling you that
Visual C++ 14.0 or greater is required.
Get it with "Microsoft C++ Build Tools":
https://visualstudio.microsoft.com/visual-cpp-build-tools/
Another option may be
pip install --only-binary :all: pyodbc
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.
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/
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.