ERROR: Command errored out with exit status 1:
command: 'c:\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\rkapr\\AppData\\Local\\Temp\\pip-install-9iaimw1v\\pycryptodome\\setup.py'"'"'; __file__='"'"'C:\\Users
\\rkapr\\AppData\\Local\\Temp\\pip-install-9iaimw1v\\pycryptodome\\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\rkapr\AppData\Local\Temp\pip-record-0trba1yq\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\python38\Include\pycrypt
odome'
cwd: C:\Users\rkapr\AppData\Local\Temp\pip-install-9iaimw1v\pycryptodome\
Complete output (364 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\Crypto
copying lib\Crypto\__init__.py -> build\lib.win32-3.8\Crypto
creating build\lib.win32-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\AES.py -> build\lib.win32-3.8\Crypto\Cipher
copying lib\Crypto\SelfTest\Signature\test_vectors\PKCS1-PSS\SigGenPSS_186-2.txt -> build\lib.win32-3.8\Crypto\SelfTest\Signature\test_vectors\PKCS1-PSS
copying lib\Crypto\SelfTest\Signature\test_vectors\PKCS1-PSS\SigGenPSS_186-3.txt -> build\lib.win32-3.8\Crypto\SelfTest\Signature\test_vectors\PKCS1-PSS
copying lib\Crypto\SelfTest\Signature\test_vectors\PKCS1-PSS\SigVerPSS_186-3.rsp -> build\lib.win32-3.8\Crypto\SelfTest\Signature\test_vectors\PKCS1-PSS
Skipping optional fixer: buffer
Skipping optional fixer: idioms
Skipping optional fixer: set_literal
Skipping optional fixer: ws_comma
running build_ext
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\rkapr\\AppData\\Local\\Temp\\pip-install-9iaimw1v\\pycryptodome\\setup
.py'"'"'; __file__='"'"'C:\\Users\\rkapr\\AppData\\Local\\Temp\\pip-install-9iaimw1v\\pycryptodome\\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\rkapr\AppData\Local\Temp\pip-record-0trba1yq\install-record.txt' --single-version-externally-managed --compile --install-hea
ders 'c:\python38\Include\pycryptodome' Check the logs for full command output.
Install pyrebase4 instead. It is a newer well maintained pyrebase library.
pip install pyrebase4
Upgrade Pip then install again
python -m pip install --upgrade pip
pip install pyrebase.
Solved my Problem
Try to install pycryptodome separately using this command.
Make sure to run the terminal as administrator.
pip install pycryptodome
Related
I want to install pyFFTW but pycharm termial shows me some errors like below.
I tried pip install pyFFTW and got messages :
Collecting pyFFTW
Using cached pyFFTW-0.12.0.tar.gz (137 kB)
Requirement already satisfied: numpy<2.0,>=1.10 in c:\flask_server\venv\lib\site-packages (from pyFFTW) (1.21.0)
Building wheels for collected packages: pyFFTW
Building wheel for pyFFTW (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\flask_server\venv\scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\pc\\AppData\\Local\\Temp\\pip-install-rg4d72bl\\pyfftw_08beecb75b3d4e24b84893cb10e0b2c2\\setup.py'"'"'
; __file__='"'"'C:\\Users\\pc\\AppData\\Local\\Temp\\pip-install-rg4d72bl\\pyfftw_08beecb75b3d4e24b84893cb10e0b2c2\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'f
rom setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\pc\AppData\Local\Temp\pip-wheel-falexgv8'
cwd: C:\Users\pc\AppData\Local\Temp\pip-install-rg4d72bl\pyfftw_08beecb75b3d4e24b84893cb10e0b2c2\
Complete output (25 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\pyfftw
copying pyfftw\config.py -> build\lib.win32-3.8\pyfftw
copying pyfftw\_version.py -> build\lib.win32-3.8\pyfftw
copying pyfftw\__init__.py -> build\lib.win32-3.8\pyfftw
creating build\lib.win32-3.8\pyfftw\builders
copying pyfftw\builders\builders.py -> build\lib.win32-3.8\pyfftw\builders
copying pyfftw\builders\_utils.py -> build\lib.win32-3.8\pyfftw\builders
copying pyfftw\builders\__init__.py -> build\lib.win32-3.8\pyfftw\builders
creating build\lib.win32-3.8\pyfftw\interfaces
copying pyfftw\interfaces\cache.py -> build\lib.win32-3.8\pyfftw\interfaces
copying pyfftw\interfaces\dask_fft.py -> build\lib.win32-3.8\pyfftw\interfaces
copying pyfftw\interfaces\numpy_fft.py -> build\lib.win32-3.8\pyfftw\interfaces
copying pyfftw\interfaces\scipy_fft.py -> build\lib.win32-3.8\pyfftw\interfaces
copying pyfftw\interfaces\scipy_fftpack.py -> build\lib.win32-3.8\pyfftw\interfaces
copying pyfftw\interfaces\_utils.py -> build\lib.win32-3.8\pyfftw\interfaces
copying pyfftw\interfaces\__init__.py -> build\lib.win32-3.8\pyfftw\interfaces
UPDATING build\lib.win32-3.8\pyfftw/_version.py
set build\lib.win32-3.8\pyfftw/_version.py to '0.12.0'
running build_ext
error: Could not find any of the FFTW libraries
----------------------------------------
ERROR: Failed building wheel for pyFFTW
Running setup.py clean for pyFFTW
Failed to build pyFFTW
Installing collected packages: pyFFTW
Running setup.py install for pyFFTW ... error
ERROR: Command errored out with exit status 1:
command: 'c:\flask_server\venv\scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\pc\\AppData\\Local\\Temp\\pip-install-rg4d72bl\\pyfftw_08beecb75b3d4e24b84893cb10e0b2c2\\setup.py'"'
"'; __file__='"'"'C:\\Users\\pc\\AppData\\Local\\Temp\\pip-install-rg4d72bl\\pyfftw_08beecb75b3d4e24b84893cb10e0b2c2\\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\pc\AppData\Local\Temp\pip-record-zstugs1k\install-re
cord.txt' --single-version-externally-managed --compile --install-headers 'c:\flask_server\venv\include\site\python3.8\pyFFTW'
cwd: C:\Users\pc\AppData\Local\Temp\pip-install-rg4d72bl\pyfftw_08beecb75b3d4e24b84893cb10e0b2c2\
Complete output (7 lines):
running install
running build
running build_py
UPDATING build\lib.win32-3.8\pyfftw/_version.py
set build\lib.win32-3.8\pyfftw/_version.py to '0.12.0'
running build_ext
error: Could not find any of the FFTW libraries
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\flask_server\venv\scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\pc\\AppData\\Local\\Temp\\pip-install-rg4d72bl\\pyfftw_08beecb75b3d
4e24b84893cb10e0b2c2\\setup.py'"'"'; __file__='"'"'C:\\Users\\pc\\AppData\\Local\\Temp\\pip-install-rg4d72bl\\pyfftw_08beecb75b3d4e24b84893cb10e0b2c2\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exist
s(__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\pc\AppData\Local\Te
mp\pip-record-zstugs1k\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\flask_server\venv\include\site\python3.8\pyFFTW' Check the logs for full command output.
I tried several solutions from google and stackoverflow, such as
pip install wheel
pip install pyFFTW-0.12.0-cp38-cp38-win_amd64.whl
with pyFFTW-0.12.0-cp38-cp38-win_amd64.whl file in current working directory.
but terminal shows me error like ERROR: pyFFTW-0.12.0-cp38-cp38-win_amd64.whl is not a supported wheel on this platform.
I installed numpy, scipy, cython and pytest already.
My python version is 3.8.3 and I don't know why these doesn't work.
Please give me some advice and I appreciate your help.
pip install open_excel
Collecting open_excel Using cached open_excel-0.101a0.tar.gz (6.5 kB) Requirement already satisfied: openpyxl in /usr/lib/python2.7/site-packages (from open_excel) (2.6.4) Requirement already satisfied: jdcal in /usr/lib/python2.7/site-packages (from openpyxl->open_excel) (1.4.1) Requirement already satisfied: et_xmlfile in /usr/lib/python2.7/site-packages (from openpyxl->open_excel) (1.0.1) Building wheels for collected packages: open-excel Building wheel for open-excel (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-UB5LPQ/open-excel/setup.py'"'"';
__file__='"'"'/tmp/pip-install-UB5LPQ/open-excel/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-nyWtv9
cwd: /tmp/pip-install-UB5LPQ/open-excel/ Complete output (14 lines): /usr/lib/python2.7/site-packages/setuptools/dist.py:476: UserWarning: Normalizing '0.101a' to '0.101a0'
normalized_version, running bdist_wheel running build running build_py creating build creating build/lib creating build/lib/open_excel copying open_excel/__init__.py -> build/lib/open_excel copying open_excel/open_excel.py -> build/lib/open_excel copying open_excel/search_excel.py -> build/lib/open_excel running build_scripts creating build/scripts-2.7 error: open_excel: Is a directory
---------------------------------------- ERROR: Failed building wheel for open-excel Running setup.py clean for open-excel Failed to build open-excel Installing collected packages: open-excel
Running setup.py install for open-excel ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-UB5LPQ/open-excel/setup.py'"'"';
__file__='"'"'/tmp/pip-install-UB5LPQ/open-excel/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-nTesj4/install-record.txt
--single-version-externally-managed --compile --install-headers /usr/include/python2.7/open-excel
cwd: /tmp/pip-install-UB5LPQ/open-excel/
Complete output (14 lines):
/usr/lib/python2.7/site-packages/setuptools/dist.py:476: UserWarning: Normalizing '0.101a' to '0.101a0'
normalized_version,
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/open_excel
copying open_excel/__init__.py -> build/lib/open_excel
copying open_excel/open_excel.py -> build/lib/open_excel
copying open_excel/search_excel.py -> build/lib/open_excel
running build_scripts
creating build/scripts-2.7
error: open_excel: Is a directory
---------------------------------------- ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-UB5LPQ/open-excel/setup.py'"'"';
__file__='"'"'/tmp/pip-install-UB5LPQ/open-excel/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-nTesj4/install-record.txt
--single-version-externally-managed --compile --install-headers /usr/include/python2.7/open-excel Check the logs for full command output.
That install seems to be buggy. It uses openpyxl, so you'll want to update yours from (2.6.4) to (3.0.5)
https://openpyxl.readthedocs.io/en/stable
Pick whichever one works for your OS:
pip install -U openpyxl
pip3 install -U openpyxl
python -m pip install -U openpyxl
python3 -m pip install -U openpyxl
py -m pip install -U openpyxl
py -3 -m pip install -U openpyxl
Save his scripts into the dir you are using, or a directory in your PATH, then import them as usual.
https://raw.githubusercontent.com/mohameosam/open_excel/master/open_excel.py
https://raw.githubusercontent.com/mohameosam/open_excel/master/search_excel.py
You can also submit a bug-report on GitHub, to let him know
https://github.com/mohameosam/open_excel/issues
I receive the following error when trying to install pyPDF2 using following text at the command prompt:
python -m pip install pyPDF2
Any suggestions to resolve?
Error result:
Microsoft Windows [Version 10.0.19042.572]
(c) 2020 Microsoft Corporation. All rights reserved.
C:\Users\bell_>python -m pip install pyPDF2
Collecting pyPDF2
Using cached https://files.pythonhosted.org/packages/b4/01/68fcc0d43daf4c6bdbc6b33cc3f77bda531c86b174cac56ef0ffdb96faab/PyPDF2-1.26.0.tar.gz
Installing collected packages: pyPDF2
Running setup.py install for pyPDF2 ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Program Files\Python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\bell_\\AppData\\Local\\Temp\\pip-install-q3y1fs2o\\pyPDF2\\setup.py'"'"'; __file__='"'"'C:\\Users\\bell_\\AppData\\Local\\Temp\\pip-install-q3y1fs2o\\pyPDF2\\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\bell_\AppData\Local\Temp\pip-record-4uxjshye\install-record.txt' --single-version-externally-managed --compile
cwd: C:\Users\bell_\AppData\Local\Temp\pip-install-q3y1fs2o\pyPDF2\
Complete output (18 lines):
running install
running build
running build_py
creating build
creating build\lib
creating build\lib\PyPDF2
copying PyPDF2\filters.py -> build\lib\PyPDF2
copying PyPDF2\generic.py -> build\lib\PyPDF2
copying PyPDF2\merger.py -> build\lib\PyPDF2
copying PyPDF2\pagerange.py -> build\lib\PyPDF2
copying PyPDF2\pdf.py -> build\lib\PyPDF2
copying PyPDF2\utils.py -> build\lib\PyPDF2
copying PyPDF2\xmp.py -> build\lib\PyPDF2
copying PyPDF2\_version.py -> build\lib\PyPDF2
copying PyPDF2\__init__.py -> build\lib\PyPDF2
running install_lib
creating C:\Program Files\Python38\Lib\site-packages\PyPDF2
error: could not create 'C:\Program Files\Python38\Lib\site-packages\PyPDF2': Access is denied
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Program Files\Python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\bell_\\AppData\\Local\\Temp\\pip-install-q3y1fs2o\\pyPDF2\\setup.py'"'"'; __file__='"'"'C:\\Users\\bell_\\AppData\\Local\\Temp\\pip-install-q3y1fs2o\\pyPDF2\\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\bell_\AppData\Local\Temp\pip-record-4uxjshye\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.2.4 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
In your error it says that access was denied. So try running the same command while running cmd as admin.
I am relatively new to Python and I am just doing a private project right now. For that I want to install xlwing to be able to run a python code from Excel. However it seems I can not install it. I try to install via:
C:\Users\Rafi>python -m pip install --user xlwings
as I installed all my other stuff.
Now when I put that into the terminal it shows me the (long) error following. However, I cant find a solution, whatever I try, maybe you guys have some suggestions?
***Running setup.py install for comtypes ... error ERROR: Command errored out with exit status 1: command: 'C:\Users\Rafi\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.7qbz5n2kfra8p0\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Rafi\AppData\Local\Temp\pip-install-xfdrq0ph\comtypes\setup.py'"'"'; __file='"'"'C:\Users\Rafi\AppData\Local\Temp\pip-install-xfdrq0ph\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\Rafi\AppData\Local\Temp\pip-record-qtr4pqm3\install-record.txt' --single-version-externally-managed --compile --user --prefix= cwd: C:\Users\Rafi\AppData\Local\Temp\pip-install-xfdrq0ph\comtypes\ Complete output (276 lines): running install running build running build_py creating build creating build\lib creating build\lib\comtypes copying comtypes\automation.py -> build\lib\comtypes copying comtypes\connectionpoints.py -> build\lib\comtypes copying<br/>
.<br/>
.<br/>
.<br/>
error: error in setup script: command 'bdist_wininst' has no such option 'install_script'
ERROR: Command errored out with exit status 1: 'C:\Users\Rafi\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.7qbz5n2kfra8p0\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Rafi\AppData\Local\Temp\pip-install-xfdrq0ph\comtypes\setup.py'"'"'; _file='"'"'C:\Users\Rafi\AppData\Local\Temp\pip-install-xfdrq0ph\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\Rafi\AppData\Local\Temp\pip-record-qtr4pqm3\install-record.txt' --single-version-externally-managed --compile --user --prefix= Check the logs for full command output.
***
This error comes from installing a dependency of xlwings: comtypes.
A quick google search revealed that your issue could be caused by an old version of wheels. Upgrade wheels like this and try again:
pip install --upgrade wheel
Having errors on cmd as admin trying to install new modules even re-installed python to get newest version, and keeps failing!
Modules I have tried
pip install pyaudio
pip install smtplib
AND MANY Others
Collecting pyaudio
Using cached https://files.pythonhosted.org/packages/ab/42/b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b/PyAudio-0.2.11.tar.gz
Installing collected packages: pyaudio
Running setup.py install for pyaudio ... error
ERROR: Command errored out with exit status 1:
command: 'c:\program files (x86)\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\marcu\\AppData\\Local\\Temp\\pip-install-9lkkindd\\pyaudio\\setup.py'"'"'; __file__='"'"'C:\\Users\\marcu\\AppData\\Local\\Temp\\pip-install-9lkkindd\\pyaudio\\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\marcu\AppData\Local\Temp\pip-record-dwdolxb5\install-record.txt' --single-version-externally-managed --compile
cwd: C:\Users\marcu\AppData\Local\Temp\pip-install-9lkkindd\pyaudio\
Complete output (9 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.7
copying src\pyaudio.py -> build\lib.win32-3.7
running build_ext
building '_portaudio' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\program files (x86)\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\marcu\\AppData\\Local\\Temp\\pip-install-9lkkindd\\pyaudio\\setup.py'"'"'; __file__='"'"'C:\\Users\\marcu\\AppData\\Local\\Temp\\pip-install-9lkkindd\\pyaudio\\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\marcu\AppData\Local\Temp\pip-record-dwdolxb5\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
yes you must download visual c++ 14 on microsoft website(optionnal) before! try after install
update your pip also!
try this link https://www.techspot.com/downloads/6776-visual-c-redistributable-package.html