Python:pip安装升华不工作

2024-06-17 10:37:04 发布

您现在位置:Python中文网/ 问答频道 /正文

我对这两种崇高都是相当陌生的。然而,我真的很喜欢使用python代码可以添加很多特性来升华。我总是在Jupyter笔记本上编写python。我通常通过Anaconda轻松安装模块,即!pip install sublime

我在我的jupyter笔记本上写了以下代码

!pip install sublime

结果:

Collecting sublime
  Downloading sublime-0.1.0.tar.gz
Collecting click<4.0,>=3.3 (from sublime)
  Downloading click-3.3-py2.py3-none-any.whl (58kB)
Building wheels for collected packages: sublime
  Running setup.py bdist_wheel for sublime: started
  Running setup.py bdist_wheel for sublime: finished with status 'done'
  Stored in directory: C:\Users\Rami New\AppData\Local\pip\Cache\wheels\03\a6\f1\a6f87bcdcdc1cd6074dae417ff91fa39039ad0c2c1133898ff
Successfully built sublime
Installing collected packages: click, sublime
  Found existing installation: click 6.7
    Uninstalling click-6.7:
      Successfully uninstalled click-6.7
Successfully installed click-3.3 sublime-0.1.0

当我编码时

import sublime

错误转变为

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-97-b083c915bef9> in <module>()
----> 1 import sublime

ModuleNotFoundError: No module named 'sublime'

有人能帮我渡过难关吗


Tags: installpip代码forpackagessetup笔记本running