Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

求助:已安装的库无法导入 #17

Open
Gav1n-is-here opened this issue Nov 12, 2023 · 5 comments
Open

求助:已安装的库无法导入 #17

Gav1n-is-here opened this issue Nov 12, 2023 · 5 comments

Comments

@Gav1n-is-here
Copy link

已安装scipy,但import时显示库未存取
PQ`BT9AXFM2E9O02WP94Q

@Gav1n-is-here
Copy link
Author

pip list中能找到scipy库,它也处于python311的lib/site-packages中
UL_6CW90FCQ@TVM`%%QVCQB
这应当能被解释器找到啊......

@Gav1n-is-here
Copy link
Author

删除后重新安装并没解决问题,报错指向的文档是关于python环境的,网上的解答也基本都是和虚拟环境相关,报错之前几天我安装了pycharm并且创建了python3.9的虚拟环境并且设置允许外部使用,但是这个scipy库确实是在这个作业用的python311环境下的lib文件夹里的,我无法理解。

@litterqi
Copy link

尝试重启pycharm或者重启你的电脑(

@ArcueidType
Copy link

crtrl shift p 然后python select interpreter看看,是不是你有好多个解释器,然后选的不是装了的那个,如果是f5调试可以在launch.json中指定python的解释器路径

@Gav1n-is-here
Copy link
Author

crtrl shift p 然后python select interpreter看看,是不是你有好多个解释器,然后选的不是装了的那个,如果是f5调试可以在launch.json中指定python的解释器路径

谢谢QAQ但还是有问题,我决定不再尝试引用它,换了numpy里面的函数。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants