ModuleNotFoundError: No module named ‘xlwt‘问题

1.若是包没有下载可通过以下两个方法进行下载。

1.1使用pip或anaconda prompt进行下载

只需要键入:pip install (包名)即可

1.2使用spyder控制台进行下载即可

需要键入:!pip install (包名),回车即可

2.若以上运行还保存,那可能是你把软件安到了d盘,而系统把程序下到了c盘

解决方法:

2.1.打开anaconda promp,键入以下内容

base) C:\Users\DELL>pip install xlwt
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: xlwt in c:\users\dell\appdata\roaming\python\python39\site-packages (1.3.0)

(base) C:\Users\DELL>

2.2按照对应文件,将相应的安装包移到你安装软件盘里面。

比如我的是:D:\anaconda3\anaconda3-work\Lib\site-packages

2.3利用anaconda promp修改路径,直接下载


(base) C:\Users\DELL>cd D:\anaconda3\anaconda3-work\Lib\site-packages

(base) C:\Users\DELL>D:

(base) D:\anaconda3\anaconda3-work\Lib\site-packages>pip install jieba
Defaulting to user installation because normal site-packages is not writeable
Collecting jieba
  Downloading jieba-0.42.1.tar.gz (19.2 MB)
     |████████████████████████████████| 19.2 MB 40 kB/s
Building wheels for collected packages: jieba
  Building wheel for jieba (setup.py) ... done
  Created wheel for jieba: filename=jieba-0.42.1-py3-none-any.whl size=19314478 sha256=807c9d8317dd0627688bc0159de0c804d73e6c89e5039760c9de44f3583042bf
  Stored in directory: c:\users\dell\appdata\local\pip\cache\wheels\7d\74\cf\08c94db4b784e2c1ef675a600b7b5b281fd25240dcb954ee7e
Successfully built jieba
Installing collected packages: jieba
Successfully installed jieba-0.42.1

(base) D:\anaconda3\anaconda3-work\Lib\site-packages>

后面相同前面不同罢了。

希望可以帮到你们

你可能感兴趣的:(python,numpy,深度学习)