我收到以下错误:
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)