asa616628217 发表于 2022-7-3 14:18:11

安装easygui遇到问题

C:\Users\Dell>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple easygui
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: easygui in c:\users\dell\appdata\roaming\python\python38\site-packages (0.98.3
这个是安装了之后出现这个但是没法用 哪位大神帮忙指导一下


临时号 发表于 2022-7-3 14:38:01

上面写的很清楚了
you can invoke Python with '-m pip' instead of running pip directly.
翻译过来就是:您可以使用'-m pip'调用Python,而不是直接运行pip
所以你可以输入这行命令
python -m pip install easygui

Twilight6 发表于 2022-7-3 15:04:01


试试镜像呢:


python -m pip install easygui -i https://pypi.tuna.tsinghua.edu.cn/simple


asa616628217 发表于 2022-7-3 16:46:00

Twilight6 发表于 2022-7-3 15:04
试试镜像呢:

C:\Users\Dell>pip list
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Package    Version
---------- -------
easygui    0.98.3
pip      22.1.2
setuptools 41.2.0
出现这个问题

Twilight6 发表于 2022-7-3 16:50:19

asa616628217 发表于 2022-7-3 16:46
C:%users\Dell>pip list
WARNING: pip is being invoked by an old script wrapper. This will fail in...


你复制错了吧,是 python -m pip install easygui -i https://pypi.tuna.tsinghua.edu.cn/simple

asa616628217 发表于 2022-7-3 16:53:21

临时号 发表于 2022-7-3 14:38
上面写的很清楚了
you can invoke Python with '-m pip' instead of running pip directly.
翻译过来就是 ...

我现在是找不到easygui 模块 导不进去
大神你说的 输入'-m pip'调用Python是在哪里输入?

临时号 发表于 2022-7-3 16:55:43

asa616628217 发表于 2022-7-3 16:53
我现在是找不到easygui 模块 导不进去
大神你说的 输入'-m pip'调用Python是在哪里输入?

就是在cmd里输啊,你试试看,虽然你这种问题我也没见过,但按照上面的报错应该是这样

asa616628217 发表于 2022-7-3 16:55:54

Twilight6 发表于 2022-7-3 16:50
你复制错了吧,是

C:\Users\Dell>python -m pip install easygui -i https://pypi.tuna.tsinghua.edu.cn/simple
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: easygui in c:\users\dell\appdata\roaming\python\python38\site-packages (0.98.3)


还是这个

asa616628217 发表于 2022-7-3 16:59:26

临时号 发表于 2022-7-3 16:55
就是在cmd里输啊,你试试看,虽然你这种问题我也没见过,但按照上面的报错应该是这样

Commands:
install                     Install packages.
download                  Download packages.
uninstall                   Uninstall packages.
freeze                      Output installed packages in requirements format.
list                        List installed packages.
show                        Show information about installed packages.
check                     Verify installed packages have compatible dependencies.
config                      Manage local and global configuration.
search                      Search PyPI for packages.
cache                     Inspect and manage pip's wheel cache.
index                     Inspect information available from package indexes.
wheel                     Build wheels from your requirements.
hash                        Compute hashes of package archives.
completion                  A helper command used for command completion.
debug                     Show information useful for debugging.
help                        Show help for commands.
这里边没有easygui模块啊

临时号 发表于 2022-7-3 17:11:39

asa616628217 发表于 2022-7-3 16:59
Commands:
install                     Install packages.
download                  Download ...

你安装失败了,你按我刚刚说的做了没有

Twilight6 发表于 2022-7-3 17:18:58

asa616628217 发表于 2022-7-3 16:55
C:%users\Dell>python -m pip install easygui -i https://pypi.tuna.tsinghua.edu.cn/simple
Defaultin ...


既然这样,那试试下面这个方法:

1、找自己的python安装路径然后打开安装目录下的 \Lib\site-packages 复制完整路径,然后复制到这个代码中去 cmd 安装

pip install --target=完整路径 easygui

比如 我的路径为 X:\Python 3.7.7\Lib\site-packages 就这样安装:

pip install --target=X:\Python 3.7.7\Lib\site-packages easygui

Ryan132 发表于 2022-7-3 18:22:18

you can invoke Python with '-m pip' instead of running pip directly.
是说你的pip版本旧了,要用python -m pip install --upgrade pip更新一下,或者用“-m pip”
更新一下再输入pip install easygui
python -m pip install --upgrade pip

或者直接输入python -m pip install easygui

asa616628217 发表于 2022-7-3 19:12:55

Ryan132 发表于 2022-7-3 18:22
you can invoke Python with '-m pip' instead of running pip directly.
是说你的pip版本旧了,要用pytho ...

谢谢 大神 我重新安装python 重新安装了pip

asa616628217 发表于 2022-7-3 19:13:35

Twilight6 发表于 2022-7-3 17:18
既然这样,那试试下面这个方法:

1、找自己的python安装路径然后打开安装目录下的 \Lib\site-packag ...

谢谢我都重新安装了 现在可以了
页: [1]
查看完整版本: 安装easygui遇到问题