我正试图用pip安装fcntl,并将其输入cmd:
pip install pycopy-fcntl
然而,这个错误弹出,我不知道它是什么,也不知道如何修复:
Collecting pycopy-fcntl
Using cached pycopy-fcntl-0.0.4.tar.gz (868 bytes)
ERROR: Command errored out with exit status 1:
command: 'c:usersjacksonappdatalocalprogramspythonpython38python.exe' -c 'import sys,
setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Jackson\AppData\Local\Temp\pip-install-l2eoh603\pycopy-fcntl\setup.py'"'"'; __file__='"'"'C:\Users\Jackson\AppData\Local\Temp\pip-install-l2eoh603\pycopy-fcntl\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:UsersJacksonAppDataLocalTemppip-pip-egg-info-j3akvbte'
cwd: C:UsersJacksonAppDataLocalTemppip-install-l2eoh603pycopy-fcntl
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:usersjacksonappdatalocalprogramspythonpython38libtokenize.py", line 392, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory:
'C:\Users\Jackson\AppData\Local\Temp\pip-install-l2eoh603\pycopy-fcntl\setup.py'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full
command output.
有没有想过我该怎么解决这个问题?
https://github.com/pfalcon/pycopy-lib#readme说:
pycopy lib是一个为pycopy项目开发非单片标准库的项目
它不是一个可安装pip
的库,甚至根本不是Python库。这是Pycopy的一个库(https://github.com/pfalcon/pycopy#readme):
Pycopy旨在开发和维护一种极简主义、轻量级和可扩展的Python(兼容(语言实现。
您真正想安装什么?模块fcntl
?这是一个来自stdlib的模块:https://docs.python.org/2.6/library/fcntl.html