Vscode中的Python库的不同版本
我正在研究VSCODE,并且正在尝试更新scikit-learn
库。但是,我在终端中有这种混乱。
user$ conda list scikit-learn
# packages in environment at /Users/ahmedelashry/opt/anaconda3/envs/mygoshaba:
#
# Name Version Build Channel
scikit-learn 1.0.2 pypi_0 pypi
user$ python
Python 3.7.10 (default, Feb 26 2021, 10:16:00)
[Clang 10.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sklearn
>>> sklearn.__version__
'0.24.2'
>>> sklearn.show_versions()
System:
python: 3.7.10 (default, Feb 26 2021, 10:16:00) [Clang 10.0.0 ]
executable: /Users/ahmedelashry/opt/anaconda3/envs/mygoshaba/bin/python
machine: Darwin-21.5.0-x86_64-i386-64bit
Python dependencies:
pip: 20.2.4
setuptools: 60.9.2
sklearn: 0.24.2
numpy: 1.21.2
scipy: 1.7.1
Cython: 0.29.26
pandas: 1.3.3
matplotlib: 3.4.2
joblib: 1.1.0
threadpoolctl: 2.2.0
Built with OpenMP: True
终端环境与我在Vscode中使用的环境相同。我试图重新启动VSCODE,这是同一件事。任何人都有这个问题,我该如何解决?谢谢你!
I am working on VSCode and I am trying to update the scikit-learn
library. However, I have this confusion in the terminal.
user$ conda list scikit-learn
# packages in environment at /Users/ahmedelashry/opt/anaconda3/envs/mygoshaba:
#
# Name Version Build Channel
scikit-learn 1.0.2 pypi_0 pypi
user$ python
Python 3.7.10 (default, Feb 26 2021, 10:16:00)
[Clang 10.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sklearn
>>> sklearn.__version__
'0.24.2'
>>> sklearn.show_versions()
System:
python: 3.7.10 (default, Feb 26 2021, 10:16:00) [Clang 10.0.0 ]
executable: /Users/ahmedelashry/opt/anaconda3/envs/mygoshaba/bin/python
machine: Darwin-21.5.0-x86_64-i386-64bit
Python dependencies:
pip: 20.2.4
setuptools: 60.9.2
sklearn: 0.24.2
numpy: 1.21.2
scipy: 1.7.1
Cython: 0.29.26
pandas: 1.3.3
matplotlib: 3.4.2
joblib: 1.1.0
threadpoolctl: 2.2.0
Built with OpenMP: True
The terminal environment is the same as the one I use in VSCode. I tried to restart VSCode and it is the same thing. Any body had this issue before and how can I solve it? Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论