相关疑难解决方法(0)

错误:没有名为“ fcntl”的模块

我收到以下错误:

Traceback (most recent call last):
  File "C:/Users/aaaa/Desktop/ttttttt.py", line 5, in <module>
   import reload
  File "C:\Users\aaa\AppData\Local\Programs\Python\Python36\lib\site-
packages\reload.py", line 3, in <module>
    import sys, time, re, os, signal, fcntl
ModuleNotFoundError: No module named 'fcntl'
Run Code Online (Sandbox Code Playgroud)

所以我做了一个pip安装,这也发生了错误。

    C:\Users\aaaa>pip install fcntl
    Collecting fcntl
      Could not find a version that satisfies the requirement fcntl (from versions: )
No matching distribution found for fcntl
Run Code Online (Sandbox Code Playgroud)

搜索结果出现了cPython,黑客行为,路由和许多其他词语。

对于初学者来说,这是一个艰难的答案,因此我想获得更详细的解决方案。

我应该如何解决?

#py3
import time
from selenium import webdriver
import codecs
import sys
import reload
import re
import fcntl
import os …
Run Code Online (Sandbox Code Playgroud)

python windows module compiler-errors python-3.x

10
推荐指数
3
解决办法
2万
查看次数

标签 统计

compiler-errors ×1

module ×1

python ×1

python-3.x ×1

windows ×1