没有此类文件或目录尝试使用pip安装fcntl时出错?

问题描述

我正在尝试使用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:\users\jackson\appdata\local\programs\python\python38\python.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('"'"'\r\n'"'"','"'"'\n'"'"');f.close();exec(compile(code,__file__,'"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Jackson\AppData\Local\Temp\pip-pip-egg-info-j3akvbte'
     cwd: C:\Users\Jackson\AppData\Local\Temp\pip-install-l2eoh603\pycopy-fcntl\
Complete output (5 lines):
Traceback (most recent call last):
  File "<string>",line 1,in <module>
  File "c:\users\jackson\appdata\local\programs\python\python38\lib\tokenize.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旨在开发和维护 minimalist ,轻量级且可扩展的Python(兼容)语言实现。

您真正要安装什么?模块fcntl?自从黎明起,它就是stdlib的一个模块:https://docs.python.org/2.6/library/fcntl.html