cmd导入的python第三方库无法在pycharm使用

一:查找本地库的存放地址

打开cmd

>>import sys

>>sys.executable

得到一个库的地址备用....

二:在pycharm中设置使得本地的库与pycharm关联起来

1.File——>Settings

2.Project workspace——>Project interpreter 点击以下图标

3.点击Add Python interpreter

 

4.Existing environment的Interpreter填写上面找到的库的地址

猜你喜欢

转载自blog.csdn.net/qq_41020714/article/details/84572401