找不到安装工具 -



我正在尝试通过 pip 安装 Plotly,但我无法特别安装 Plotly 打包。我收到以下错误:

C:Python 3.6>python -m pip show SetupTools
Name: setuptools
Version: 39.0.1
Summary: Easily download, build, install, upgrade, and uninstall Python packages
Home-page: https://github.com/pypa/setuptools
Author: Python Packaging Authority
Author-email: distutils-sig@python.org
License: UNKNOWN
Location: c:python 3.6libsite-packages
Requires:
C:Python 3.6>python -m pip install Plotly
Collecting Plotly
  Using cached plotly-2.5.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ModuleNotFoundError: No module named 'setuptools'
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:UsersrskinAppDataLocalTemppip-build-uw5jnlnhPlotly 

我使用的是Python 3.6,并且pip和setup工具都已安装并且是最新的。我可以毫无问题地安装其他 Python 包。我认为这可能与我的Python 3.6文件的位置有关,但我不确定有什么想法吗?

您可能需要为用户安装 pip 和设置工具:

pip3 install -U pip setuptools

最新更新