我试过了sudo apt-get install python3

sudo apt-get install idle

sudo apt-get install python3-pip

然后我尝试用pip安装模块,我尝试了几个非工作。pip install send2trash

Collecting send2trash

Downloading https://files.pythonhosted.org/packages/13/2e/ea40de0304bb1dc4eb309de90aeec39871b9b7c4bd30f1a3cdcb3496f5c0/Send2Trash-1.5.0.tar.gz

Building wheels for collected packages: send2trash

Running setup.py bdist_wheel for send2trash ... done

Stored in directory: /home/joe/.cache/pip/wheels/f1/ca/e5/bdd5eae705cf50a483257e6ff9dd34911dda3570f0e1340dda

Successfully built send2trash

Installing collected packages: send2trash

Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/Send2Trash-1.5.0.dist-info'

Consider using the `--user` option or check the permissions.

You are using pip version 10.0.1, however version 18.0 is available.

You should consider upgrading via the 'pip install --upgrade pip' command.

所以我尝试升级pip ......sudo pip install --upgrade pip

Traceback (most recent call last):

File "/usr/bin/pip", line 9, in

from pip import main

ImportError: cannot import name main

显然,我的计算机上有一些旧的python 2.7。我没有使用它。如果解决方案涉及卸载它,我可以。提前致谢。

在我阅读一些说明时,也尝试了sudo pip3。这就是我现在得到的......sudo pip3 install beautifulSoup

[sudo] password for joe:

The directory '/home/joe/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

The directory '/home/joe/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

Collecting beautifulSoup

Downloading https://files.pythonhosted.org/packages/1e/ee/295988deca1a5a7accd783d0dfe14524867e31abb05b6c0eeceee49c759d/BeautifulSoup-3.2.1.tar.gz

Complete output from command python setup.py egg_info:

Traceback (most recent call last):

File "", line 1, in

File "/tmp/pip-build-p5xsk9e4/beautifulSoup/setup.py", line 22

print "Unit tests have failed!"

^

SyntaxError: Missing parentheses in call to 'print'

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-p5xsk9e4/beautifulSoup/

You are using pip version 8.1.1, however version 18.0 is available.

You should consider upgrading via the 'pip install --upgrade pip' command.

消息说/home/joe/.cache/pip/http不归当前用户所有。那是不正确的。我的电脑对我说谎。这条整条路径一直是我所拥有的,用户乔。

这是用sudo pip运行的...sudo pip install beautifulSoup

Traceback (most recent call last):

File "/usr/bin/pip", line 9, in

from pip import main

ImportError: cannot import name main

还有伤口......sudo python3 -m pip install --upgrade pip

The directory '/home/joe/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

The directory '/home/joe/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

Collecting pip

Downloading https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl (1.3MB)

100% |████████████████████████████████| 1.3MB 553kB/s

Installing collected packages: pip

Found existing installation: pip 8.1.1

Not uninstalling pip at /usr/lib/python3/dist-packages, outside environment /usr

Successfully installed pip-8.1.1

You are using pip version 8.1.1, however version 18.0 is available.

You should consider upgrading via the 'pip install --upgrade pip' command.

这似乎有效。但后来我跑了sudo pip3和sudo pip ......sudo pip3 install beautifulSoup

Traceback (most recent call last):

File "/usr/local/bin/pip3", line 7, in

from pip._internal import main

ImportError: No module named 'pip._internal'

sudo pip install beautifulSoup

Traceback (most recent call last):

File "/usr/local/bin/pip", line 7, in

from pip._internal import main

ImportError: No module named 'pip._internal'

为什么安装不了python3 get pip_python3 pip无法安装任何包也无法更新pip ubuntu相关推荐

  1. python3.5安装pip_win10上python3.5.2第三方库安装(运用pip)

    1 首先在python官网下载并安装python.我这儿用的是python3.5.2,其自带了pip.如果你选择的版本没有自带pip,那么请查找其他的安装教程. 2 python安装好以后,我在其自带 ...

  2. 源码安装ROS Melodic Python3 指南 (转) + 安装记录

    这篇文章转自   https://blog.csdn.net/id9502/article/details/80410989  简直就是ros源码阅读顺序表 1. 首先安装基本依赖包: 安装ros依赖 ...

  3. 在Pycharm中更新安装最新版本pip,安装tensorflow

    在pycharm中安装tensorflow时,安装失败,并且终端显示: WARNING: You are using pip version 20.1.1; however, version 22.3 ...

  4. cmd输入pip报错_使用Pip管理Python的包

    这是我的Python教程的第2篇文章 第1篇文章在这里:Python安装 0x01Pip介绍 Pip是Python的包管理程序,负责Python的包的查找,下载,安装,卸载工作;使用Pip可以轻松的管 ...

  5. Python更新PIP至最新版本

    有时我们使用pip为python安装模块"python -m pip install **"时,系统提醒需要更新pip版本,使用以下指令即可: python -m pip inst ...

  6. python3.6.0怎么安装pip_python3.6环境安装+pip环境配置教程图文详解

    1.python安装可以跨平台 2.有两个版本2.7和3.6,第三方库适用2.7版,两个版本不兼容 windows安装: 第一种方法官网安装: 在官网下载安装包如图: 图下点击是默认下载32位所以我们 ...

  7. python3.7.4安装pip_python3.7下pip的安装教程

    pip 是 Python包管理工具,该工具提供了对Python 包的查找.下载.安装.卸载的功能.现在一般下载的python都自带了pip包管理工具,但有的时候没有,那就需要我们进行下载了.下面小编给 ...

  8. CentOS 7-(64位)系统下安装Anaconda(Python3.x)及pip使用

    CentOS 7 自带Python2.7 安装Anaconda(Python3.6) Anaconda最好去下载清华提供的镜像,网速会很快,安装Anaconda3-4.4.0-Linux-x86_64 ...

  9. python3中pip的安装、常见问题及万能解决方案。

    系统环境:win10 python版本:3.7.2(已添加到系统环境变量) 很久没碰python,看见一段代码打算运行的时候发现一堆问题,代码如下: ''' 遇到问题没人解答?小编创建了一个Pytho ...

最新文章

  1. 陈怡然团队最新研究:用复数神经网络提高梯度正则化准确度 | ICML 2021
  2. aspnet core 2.1中使用jwt从原理到精通二
  3. 带有JSF,Servlet和CDI的DynamicReports和JasperReports
  4. 华科网络内容管理系统 v5.6 手机 PC
  5. gradle的配置文件build.gradle、gradle.properties、settings.gradle示例
  6. What is Equivocation in Byzantine Fault Tolerance?
  7. java线程池概念_Java 线程池概念、原理、简单实现
  8. python 文件 解析ddl_BKM ? 35期 — Python解析ANSYS文件
  9. 数学建模(5.5)相关系数_斯皮尔曼相关系数
  10. 《计算机安全与防护》教学反思,“计算机安全与防护教学设计”教学设计...
  11. python md5解密方法与技巧_python ---- 爬取 md5解密结果 的小脚本
  12. tableau 颜色设置汇总
  13. 台式计算机入门基础知识,电脑基础知识:新手入门最全电脑知识干货
  14. 百度排名靠前工具软件
  15. [USACO10HOL]赶小猪
  16. android 通知栏授权,Android通知栏权限是否开启
  17. 【CUDA 基础】3.1 CUDA执行模型概述
  18. samba使用指定端口windows访问linux
  19. 免费的播放器软件--mpv
  20. 中国青年报:COS 有义务回应公众质疑

热门文章

  1. beanshell断言_jmeter之BeanShell对两个变量断言对比
  2. kalman滤波预测速度之只有位置观测量的小汽车匀速直线运动模型
  3. mcafee软件卸载工具
  4. 2019年第41周DApp影响力排行榜 | TokenInsight
  5. 5分钟了解“内部威胁”,企业数据安全的定时炸弹
  6. 触发器(寄存器)与锁存器的异同
  7. Ds918 ds3615 ds3617区别_都9102年了,还问GET和POST的区别
  8. 电路噪声的产生以及抑制噪声的方法
  9. 高通410的随身WiFi安装风扇和散热片的教程
  10. Vue中的数据代理与数据劫持