I am trying using FFTW3 in python and when I try to install it I got this:
xxxxxxx#iMac ~ % pip3 install pyfftw3
Collecting pyfftw3
Using cached PyFFTW3-0.2.1.tar.gz (25 kB)
ERROR: Command errored out with exit status 1:
command: /usr/local/opt/python#3.9/bin/python3.9 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-m021xxq5/pyfftw3_69a9370f7f41441eaca6ae508a6a1544/setup.py'"'"'; __file__='"'"'/private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-m021xxq5/pyfftw3_69a9370f7f41441eaca6ae508a6a1544/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-pip-egg-info-m06gikf1
cwd: /private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-m021xxq5/pyfftw3_69a9370f7f41441eaca6ae508a6a1544/
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-m021xxq5/pyfftw3_69a9370f7f41441eaca6ae508a6a1544/setup.py", line 81
print "build %s from template %s" %(outfile, tmplfile)
^
SyntaxError: invalid syntax
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/58/07/e070b9a44429bbd5481f9f0b2d1b35d896fbfd180051e05c840186a31c8a/PyFFTW3-0.2.1.tar.gz#sha256=8941a023e6e4f501e7cec92382c3d3f76f47c7583e9eade738840dd9e4e467c4 (from https://pypi.org/simple/pyfftw3/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement pyfftw3
ERROR: No matching distribution found for pyfftw3
I have the newest version of python installed by Homebrew.
Pip is also the newest version.
I have tried pip install -U setuptools
Inspired by 'Swetank Poddar': I found the pyfftw3 is a python2 library, so I tried pip3 install pyfftw. But, I got a new question:
Collecting pyfftw
Downloading pyFFTW-0.12.0.tar.gz (137 kB)
|████████████████████████████████| 137 kB 167 kB/s
Requirement already satisfied: numpy<2.0,>=1.10 in /usr/local/lib/python3.9/site-packages (from pyfftw) (1.19.5)
Building wheels for collected packages: pyfftw
Building wheel for pyfftw (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/opt/python#3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-p3twpksg/pyfftw_a5a93b1d21cd45bb90489634e47c82a5/setup.py'"'"'; __file__='"'"'/private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-p3twpksg/pyfftw_a5a93b1d21cd45bb90489634e47c82a5/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 /private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-wheel-e51wsh5k
cwd: /private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-p3twpksg/pyfftw_a5a93b1d21cd45bb90489634e47c82a5/
Complete output (25 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.15-x86_64-3.9
creating build/lib.macosx-10.15-x86_64-3.9/pyfftw
copying pyfftw/config.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw
copying pyfftw/_version.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw
copying pyfftw/__init__.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw
creating build/lib.macosx-10.15-x86_64-3.9/pyfftw/builders
copying pyfftw/builders/builders.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/builders
copying pyfftw/builders/__init__.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/builders
copying pyfftw/builders/_utils.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/builders
creating build/lib.macosx-10.15-x86_64-3.9/pyfftw/interfaces
copying pyfftw/interfaces/cache.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/interfaces
copying pyfftw/interfaces/__init__.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/interfaces
copying pyfftw/interfaces/scipy_fft.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/interfaces
copying pyfftw/interfaces/dask_fft.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/interfaces
copying pyfftw/interfaces/numpy_fft.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/interfaces
copying pyfftw/interfaces/scipy_fftpack.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/interfaces
copying pyfftw/interfaces/_utils.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/interfaces
UPDATING build/lib.macosx-10.15-x86_64-3.9/pyfftw/_version.py
set build/lib.macosx-10.15-x86_64-3.9/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: /usr/local/opt/python#3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-p3twpksg/pyfftw_a5a93b1d21cd45bb90489634e47c82a5/setup.py'"'"'; __file__='"'"'/private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-p3twpksg/pyfftw_a5a93b1d21cd45bb90489634e47c82a5/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/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-record-ljyxfo00/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/python#3.9/3.9.1_6/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyfftw
cwd: /private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-p3twpksg/pyfftw_a5a93b1d21cd45bb90489634e47c82a5/
Complete output (7 lines):
running install
running build
running build_py
UPDATING build/lib.macosx-10.15-x86_64-3.9/pyfftw/_version.py
set build/lib.macosx-10.15-x86_64-3.9/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: /usr/local/opt/python#3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-p3twpksg/pyfftw_a5a93b1d21cd45bb90489634e47c82a5/setup.py'"'"'; __file__='"'"'/private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-p3twpksg/pyfftw_a5a93b1d21cd45bb90489634e47c82a5/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/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-record-ljyxfo00/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/python#3.9/3.9.1_6/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyfftw Check the logs for full command output.
It looks like the problem is mainly about the "Building wheel for pyfftw".
Alternatively you could install pyFFTW: pip install pyFFTW
Install instructions for Mac OS:
Install FFTW from homebrew:
brew install fftw
Set temporary environmental variables, such that pyfftw finds fftw:
export DYLD_LIBRARY_PATH=/usr/local/lib export LDFLAGS="-L/usr/local/lib"
export CFLAGS="-I/usr/local/include"
Now install pyfftw from pip:
pip install pyfftw
It has been suggested that macports might also work fine. You should then replace the LD environmental variables above with the right ones.
DYLD - path for libfftw3.dylib etc - find /usr -name libfftw3.dylib
LDFLAGS - path for fftw3.h - find /usr -name fftw3.h
check the python version once ,by typing python --version and if it is the latest version of python go to the code that you are typing and check the print statement as it is showing error in command prompt as you mentioned...in latest version of python you have to use parenthesis after print("you have to use parenthesis")
Refer to https://github.com/pyFFTW/pyFFTW/issues/303
Run brew install fftw
Install the lib with LDFLAGS="-L/usr/local/lib" CFLAGS="-I/usr/local/include -Wno-error=implicit-function-declaration" python setup.py install
Related
THIS IS NOT CODE - ( I have read everything on google, I have the latest version of pip, python, pycharm,
I have Installed Microsoft visual studios C++, pip install pipwin then
pipwin install pyaudio - all of these installed well with no errors - it's just my Pycharm that doesn't accept the package for some reason. any ideas?
This is the error message in the Pycharm 'Available Packages'
Collecting PyAudio
Using cached PyAudio-0.2.11.tar.gz (37 kB)
Building wheels for collected packages: PyAudio
Building wheel for PyAudio (setup.py): started
Building wheel for PyAudio (setup.py): finished with status 'error'
Running setup.py clean for PyAudio
Failed to build PyAudio
Installing collected packages: PyAudio
Running setup.py install for PyAudio: started
Running setup.py install for PyAudio: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'C:\Users\joe_h\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\joe_h\\AppData\\Local\\Temp\\pip-install-j2z8zhnm\\pyaudio_4cd919902d73421787fec2034b1272c2\\setup.py'"'"'; __file__='"'"'C:\\Users\\joe_h\\AppData\\Local\\Temp\\pip-install-j2z8zhnm\\pyaudio_4cd919902d73421787fec2034b1272c2\\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 'C:\Users\joe_h\AppData\Local\Temp\pip-wheel-7444zi78'
cwd: C:\Users\joe_h\AppData\Local\Temp\pip-install-j2z8zhnm\pyaudio_4cd919902d73421787fec2034b1272c2\
Complete output (11 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
copying src\pyaudio.py -> build\lib.win-amd64-3.9
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
building '_portaudio' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Failed building wheel for PyAudio
ERROR: Command errored out with exit status 1:
command: 'C:\Users\joe_h\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\joe_h\\AppData\\Local\\Temp\\pip-install-j2z8zhnm\\pyaudio_4cd919902d73421787fec2034b1272c2\\setup.py'"'"'; __file__='"'"'C:\\Users\\joe_h\\AppData\\Local\\Temp\\pip-install-j2z8zhnm\\pyaudio_4cd919902d73421787fec2034b1272c2\\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\joe_h\AppData\Local\Temp\pip-record-4nk7pxtt\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\joe_h\AppData\Roaming\Python\Python39\Include\PyAudio'
cwd: C:\Users\joe_h\AppData\Local\Temp\pip-install-j2z8zhnm\pyaudio_4cd919902d73421787fec2034b1272c2\
Complete output (11 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
copying src\pyaudio.py -> build\lib.win-amd64-3.9
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
building '_portaudio' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\joe_h\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\joe_h\\AppData\\Local\\Temp\\pip-install-j2z8zhnm\\pyaudio_4cd919902d73421787fec2034b1272c2\\setup.py'"'"'; __file__='"'"'C:\\Users\\joe_h\\AppData\\Local\\Temp\\pip-install-j2z8zhnm\\pyaudio_4cd919902d73421787fec2034b1272c2\\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\joe_h\AppData\Local\Temp\pip-record-4nk7pxtt\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\joe_h\AppData\Roaming\Python\Python39\Include\PyAudio' Check the logs for full command output.
PyAudio doesn't have wheels (prebuilt packages) for Python 3.7+ on Windows, PyAudio is supported by Python 2.7, 3.4, 3.5, and 3.6
If you have anaconda you can run conda install pyaudio instead and that should work.
Collecting PyAudio
Using cached PyAudio-0.2.11.tar.gz (37 kB)
Using legacy setup.py install for PyAudio, since package 'wheel' is not installed.
Installing collected packages: PyAudio
Running setup.py install for PyAudio ... error
ERROR: Command errored out with exit status 1:
command: 'c:\python 3.8\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\spogm\AppData\Local\Temp\pip-install-wul1u7y7\PyAudio\setup.py'"'"'; __
file__='"'"'C:\Users\spogm\AppData\Local\Temp\pip-install-wul1u7y7\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\spogm\AppData\Local\Temp\pip-record-m6e8jsq4\install-record.txt' --single-version-externally-
managed --compile --install-headers 'c:\python 3.8\Include\PyAudio'
cwd: C:\Users\spogm\AppData\Local\Temp\pip-install-wul1u7y7\PyAudio
Complete output (9 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.8
copying src\pyaudio.py -> build\lib.win32-3.8
running build_ext
building '_portaudio' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\python 3.8\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\spogm\AppData\Local\Temp\pip-install-wul
1u7y7\PyAudio\setup.py'"'"'; file='"'"'C:\Users\spogm\AppData\Local\Temp\pip-install-wul1u7y7\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\spogm\AppData\Local\Temp\pip-record-m6e8jsq4\install-record.
txt' --single-version-externally-managed --compile --install-headers 'c:\python 3.8\Include\PyAudio' Check the logs for full command output.
if you are using windows:
Go to: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio
Download the file and then go to its directory in the cmd and type:
For win 32 bit:
pip install PyAudio‑0.2.11‑cp37‑cp37m‑win32.whl
For win 64 bit:
pip install PyAudio‑0.2.11‑cp38‑cp38‑win_amd64.whl
Defaulting to user installation because normal site-packages is not writeable
Collecting jsonlib
Using cached jsonlib-1.6.1.tar.gz (43 kB)
Could not build wheels for jsonlib, since package 'wheel' is not installed.
Installing collected packages: jsonlib
Running setup.py install for jsonlib ... error
ERROR: Command errored out with exit status 1:
command: 'c:\program files (x86)\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Shankhya13\\AppData\\Local\
\Temp\\pip-install-5t7gtx9m\\jsonlib\\setup.py'"'"'; __file__='"'"'C:\\Users\\Shankhya13\\AppData\\Local\\Temp\\pip-install-5t7gtx9m\\jsonlib\\setup.py'"'"';f=g
etattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' in
stall --record 'C:\Users\Shankhya13\AppData\Local\Temp\pip-record-y8xv3b4p\install-record.txt' --single-version-externally-managed --user --prefix= --compile --
install-headers 'C:\Users\Shankhya13\AppData\Roaming\Python\Python38\Include\jsonlib'
cwd: C:\Users\Shankhya13\AppData\Local\Temp\pip-install-5t7gtx9m\jsonlib\
Complete output (9 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.8
copying jsonlib.py -> build\lib.win32-3.8
running build_ext
building '_jsonlib' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
I am new to python notebook and python. I'm currently taking python for data science on LinkedIn learning, and I'm running into problem below and couldn't find the solution.
''''! pip3 install plotly''''
Collecting plotly
Using cached https://files.pythonhosted.org/packages/15/90/918bccb0ca60dc6d126d921e2c67126d75949f5da777e6b18c51fb12603d/plotly-4.6.0-py2.py3-none-any.whl
Requirement already satisfied: six in ./Library/Python/3.8/lib/python/site-packages (from plotly) (1.14.0)
Collecting retrying>=1.3.3 (from plotly)
Using cached https://files.pythonhosted.org/packages/44/ef/beae4b4ef80902f22e3af073397f079c96969c69b2c7d52a57ea9ae61c9d/retrying-1.3.3.tar.gz
Installing collected packages: retrying, plotly
Running setup.py install for retrying ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/setup.py'"'"'; __file__='"'"'/private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/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/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-record-w8sk2i31/install-record.txt --single-version-externally-managed --compile
cwd: /private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/
Complete output (9 lines):
running install
running build
running build_py
creating build
creating build/lib
copying retrying.py -> build/lib
running install_lib
copying build/lib/retrying.py -> /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages
error: could not create '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/retrying.py': Permission denied
----------------------------------------
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/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/setup.py'"'"'; __file__='"'"'/private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/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/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-record-w8sk2i31/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 'pip install --upgrade pip' command.
Try:
pip install plotly==4.6.0 --user
https://plotly.com/python/getting-started/
don't let me install the lib machine.
I have installed the new version of python 3.8X 64bit, and I need the machine library but it gives me error status 1 and then status 2.
Why does it happen to me and how do I solve this problem?
HOW INSTALL MACHINE??
Using cached machine-0.0.1-py2.py3-none-any.whl (4.2 kB)
Collecting pycrypto
Using cached pycrypto-2.6.1.tar.gz (446 kB)
Building wheels for collected packages: pycrypto
Building wheel for pycrypto (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\javier.gutierrez\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\javier.gutierrez\\AppData\\Local\\Temp\\pip-install-4736ysct\\pycrypto\\setup.py'"'"'; __file__='"'"'C:\\Users\\javier.gutierrez\\AppData\\Local\\Temp\\pip-install-4736ysct\\pycrypto\\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 'C:\Users\javier.gutierrez\AppData\Local\Temp\pip-wheel-bc38nqbl'
cwd: C:\Users\javier.gutierrez\AppData\Local\Temp\pip-install-4736ysct\pycrypto\
Complete output (183 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\Crypto
.......................
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\javier.gutierrez\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\javier.gutierrez\\AppData\\Local\\Temp\\pip-install-4736ysct\\pycrypto\\setup.py'"'"'; __file__='"'"'C:\\Users\\javier.gutierrez\\AppData\\Local\\Temp\\pip-install-4736ysct\\pycrypto\\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\javier.gutierrez\AppData\Local\Temp\pip-record-g2ah2ovt\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\javier.gutierrez\appdata\local\programs\python\python38-32\Include\pycrypto' Check the logs for full command output.```
_______________________________________________________________________________
[[[[[[[_You are therefore probably looking for another module, since you tagged micropython, maybe this one? neither does it allow me to install the upython lib._
_I have redrawn all and added the path besides checking that this 64bits_
**thanks for your help**]]]]]]]]
_________________________________________________________________________________
Collecting micropython-machine
Using cached micropython-machine-0.2.tar.gz (1.7 kB)
ERROR: Command errored out with exit status 1:
command: 'c:\python\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\javier.gutierrez\\AppData\\Local\\Temp\\pip-install-d28uahkh\\micropython-machine\\setup.py'"'"'; __file__='"'"'C:\\Users\\javier.gutierrez\\AppData\\Local\\Temp\\pip-install-d28uahkh\\micropython-machine\_, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\javier.gutierrez\AppData\Local\Temp\pip-install-d28uahkh\micropython-machine\pip-egg-info'
cwd: C:\Users\javier.gutierrez\AppData\Local\Temp\pip-install-d28uahkh\micropython-machine\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\python\lib\tokenize.py", line 392, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\javier.gutierrez\\AppData\\Local\\Temp\\pip-install-d28uahkh\\micropython-machine\\setup.py'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.```
I have installed the new version of python 3.8X 64bit
No, you have python 3.8 32 bit, as your path suggests:
c:\users\javier.gutierrez\appdata\local\programs\python\ python38-32
Also your error suggests that it is trying to build for 32 bit:
creating build\lib.win32
Why does it happen to me
The module you are trying to install has pycrypto as a requirement, which has not been updated since 2014 and is only compatible up to python 3.5. It is also insecure and should not be used.
Looking at the module you are trying to install which is this one, it is pretty much empty, containing only an example setup.py and an example __init__.py.
You are therefore probably looking for another module, since you tagged micropython, maybe this one?