求助pip3安装pip库一直失败
Tofloor
poster avatar
sakura_579
deepin
2019-09-25 09:31
Author
大佬们 谁遇到和小白我一样的问题
我都尝试改过那些地方(改动的地方我也不是很懂)
先在usr/bin里改动了pip3.py内容

其次又在/etc里创建了pip.conf文件(换阿里源)

但是

Reply Favorite View the author
All Replies
avatar
ritter
deepin
2019-09-25 09:56
#1
math是核心库,自带的,不用安装。
Reply View the author
avatar
sakura_579
deepin
2019-09-26 09:29
#2
https://bbs.deepin.org/post/183064
math是核心库,自带的,不用安装。

又不是这一个库的问题 是什么库都安不上,,我听人家说的是要降低pip3的版本??
Reply View the author
avatar
ritter
deepin
2019-09-26 10:09
#3
https://bbs.deepin.org/post/183064
又不是这一个库的问题 是什么库都安不上,,我听人家说的是要降低pip3的版本?? ...

怎么个装不上法?你要把错误信息贴出来,光说装不上别人怎么帮你。math是核心库,包括json等等都不能通过pip安装,因为只要有python环境,肯定有这些库。你装一个numpy试试能不能装上。
Reply View the author
avatar
sakura_579
deepin
2019-09-26 16:09
#4
https://bbs.deepin.org/post/183064
怎么个装不上法?你要把错误信息贴出来,光说装不上别人怎么帮你。math是核心库,包括json等等都不能通过 ...

能装上。。。那个大佬 我想知道就是 第一张图片的main 和main._main() 有什么区别。。。
Reply View the author
avatar
ritter
deepin
2019-09-27 07:13
#5
main是个object,main._main()是什么具体还得看_main()返回什么东西。根据sys.exit的手册,
```
exit([status])
Exit the interpreter by raising SystemExit(status).
If the status is omitted or None, it defaults to zero (i.e., success).
If the status is an integer, it will be used as the system exit status.
If it is another kind of object, it will be printed and the system
exit status will be one (i.e., failure).
```
_main()可能返回None, 可能返回integer,也可能返回一个object,具体要看源码,我是python3.7的,pip里面已经没有main了,所以我也不知道。
Reply View the author