鱼C论坛

 找回密码
 立即注册
查看: 2761|回复: 13

[已解决]安装easygui遇到问题

[复制链接]
发表于 2022-7-3 14:18:11 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
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 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 就这样安装:

  1. pip install --target=X:\Python 3.7.7\Lib\site-packages easygui
复制代码

微信图片_20220703141118.png
微信图片_20220703141118.png
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2022-7-3 14:38:01 | 显示全部楼层
上面写的很清楚了
you can invoke Python with '-m pip' instead of running pip directly.
翻译过来就是:您可以使用'-m pip'调用Python,而不是直接运行pip
所以你可以输入这行命令
  1. python -m pip install easygui
复制代码
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2022-7-3 15:04:01 | 显示全部楼层

试试镜像呢:


  1. python -m pip install easygui -i https://pypi.tuna.tsinghua.edu.cn/simple
复制代码



想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2022-7-3 16:46:00 | 显示全部楼层

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
出现这个问题  
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 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  ...


你复制错了吧,是
  1. python -m pip install easygui -i https://pypi.tuna.tsinghua.edu.cn/simple
复制代码
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 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是在哪里输入?
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

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


就是在cmd里输啊,你试试看,虽然你这种问题我也没见过,但按照上面的报错应该是这样
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 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)


还是这个
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 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模块啊
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2022-7-3 17:11:39 | 显示全部楼层
asa616628217 发表于 2022-7-3 16:59
Commands:
  install                     Install packages.
  download                    Download ...

你安装失败了,你按我刚刚说的做了没有
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 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 就这样安装:

  1. pip install --target=X:\Python 3.7.7\Lib\site-packages easygui
复制代码

想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 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”
更新一下再输入
  1. pip install easygui
复制代码
  1. python -m pip install --upgrade pip
复制代码


或者直接输入
  1. python -m pip install easygui
复制代码
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 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
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2022-7-3 19:13:35 | 显示全部楼层
Twilight6 发表于 2022-7-3 17:18
既然这样,那试试下面这个方法:

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

谢谢  我都重新安装了 现在可以了
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-5-19 09:11

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表