Vscode中的Python库的不同版本

发布于 2025-02-13 16:24:09 字数 1155 浏览 1 评论 0原文

我正在研究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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文