我已经安装了新版本的python 3.8X 64位,我需要机器库,但它会给我错误状态1,然后是状态2。为什么会发生在我身上,我该如何解决这个问题?
如何安装机器
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:usersjavier.gutierrezappdatalocalprogramspythonpython38-32python.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('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:Usersjavier.gutierrezAppDataLocalTemppip-wheel-bc38nqbl'
cwd: C:Usersjavier.gutierrezAppDataLocalTemppip-install-4736ysctpycrypto
Complete output (183 lines):
running bdist_wheel
running build
running build_py
creating build
creating buildlib.win32-3.8
creating buildlib.win32-3.8Crypto
.......................
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:usersjavier.gutierrezappdatalocalprogramspythonpython38-32python.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('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:Usersjavier.gutierrezAppDataLocalTemppip-record-g2ah2ovtinstall-record.txt' --single-version-externally-managed --compile --install-headers 'c:usersjavier.gutierrezappdatalocalprogramspythonpython38-32Includepycrypto' 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:pythonpython.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:Usersjavier.gutierrezAppDataLocalTemppip-install-d28uahkhmicropython-machinepip-egg-info'
cwd: C:Usersjavier.gutierrezAppDataLocalTemppip-install-d28uahkhmicropython-machine
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:pythonlibtokenize.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.```
我已经安装了新版本的python 3.8X 64位
不,您有python 3.8 32位,正如您的路径所示:
c: \users\javier.gutierrez\appdata\local\programs\python\python38-32
此外,您的错误表明它正在尝试为32位构建:
creating buildlib.win32
为什么它会发生在我身上
您尝试安装的模块需要pycrypto
,该模块自2014年以来一直没有更新,仅兼容python 3.5。它也是不安全的,不应使用。
看看您试图安装的模块,也就是这个模块,它几乎是空的,只包含一个示例setup.py
和一个示例__init__.py
。
因此,您可能正在寻找另一个模块,因为您标记了micropython
,也许是这个模块?