Tag: python3

apt-get命令因libpython3.3 unmet依赖而失败

操作系统:Ubuntu 14.04,amd_x64。 apt-get命令如install,remove和purge失败,错误与下面所示相同 但是update和clean等命令工作正常。 不确定如何解决问题。 看看我的终端会议。 $ sudo apt-get install –reinstall lightdm Reading package lists… Building dependency tree… Reading state information… You might want to run ‘apt-get -f install’ to correct these: The following packages have unmet dependencies: libpython3.3 : Depends: python3.3 (= 3.3.6-1+trusty1) but 3.3.2-7ubuntu4 is to be installed E: Unmet dependencies. Try ‘apt-get […]

如何在14.04安装python3-django?

python3-django是Ubuntu 15.04的repos中提供的软件包。 它不在Ubuntu 14.04的默认存储库中。 如何在Ubuntu 14.04中安装它?

Python 3无法正常工作

我最近从源代码安装了python 3.5,但我认为在安装或链接过程中我做错了。 在此之后,我在安装任何Ubuntu软件包时遇到问题。 例如,即使在重新安装软件属性 – common之后,add-apt-repository也不起作用。 $ add-apt-repository bash: /usr/bin/add-apt-repository: /usr/bin/python3: bad interpreter: No such file or directory 另外,apt-get install会给我这个错误 $ sudo apt-get install libraw-dev Reading package lists… Done Building dependency tree Reading state information… Done The following NEW packages will be installed: libraw-dev 0 upgraded, 1 newly installed, 0 to remove and 229 not […]

点子安装总是导致错误

我想在跨平台上安装cx_freeze或pyInstaller来运行我的python游戏,而无需安装python3和pygame。 但是他们的制造商网页上指示的命令sudo pip install cx_freeze(或pyInstaller)对我来说不起作用。 始终出现的错误如下: 目录“/home/h3friend/.cache/pip/http”或其父目录不归当前用户所有,并且已禁用缓存。 请检查该目录的权限和所有者。 如果用sudo执行pip,你可能需要sudo的-H标志。 目录“/home/h3friend/.cache/pip”或其父目录不归当前用户所有,并且已禁用缓存轮。 检查该目录的权限和所有者。 如果用sudo执行pip,你可能需要sudo的-H标志。 有谁知道我需要做什么才能解决这个问题? 提前致谢!

ImportError:没有名为easydict的模块

我正在尝试基于这个GitHub页面运行py-faster-rcnn的演示。 我已经完成了之前的所有步骤。 但是当我尝试使用python ./tools/demo.py –gpu 0 –net vgg16运行演示时python ./tools/demo.py –gpu 0 –net vgg16我收到此错误: Traceback (most recent call last): File “./tools/demo.py”, line 17, in from fast_rcnn.config import cfg File “/home/hadi/Software/py-faster-rcnn/tools/../lib/fast_rcnn/config.py”, line 23, in from easydict import EasyDict as edict ImportError: No module named easydict 我用这两个命令安装了easydict: sudo pip install easydict pip install easydict 这与python路径有关吗? 我已经安装了python 2.7和3.5。 从那时起,我得到了所有这些与python相关的错误。 […]

如何更改python的默认空闲?

好的,我的系统上有python 3.5。 每当我打开.py文件时,Idle3启动,因此按F5将立即运行我的代码。 但是我现在需要python 2.7进行分配。 在终端我安装’空闲’所以,我可以轻松地打开空闲和空闲3。 我的问题是,我无法将我的.py文件的默认应用程序更改为空闲。 它只看到idle3,所以我无法打开我的文件,默认情况下空闲(2.7)。 那有什么简单的解决方法吗?

pip3缺少依赖

我今天安装了最新的Ubuntu Gnome,并正在设置我的机器,用于与数据科学相关的工作。 当我尝试安装tensorflow-gpu时,我遇到了来自pip3的崩溃: me@pc:~/Desktop$ pip3 Traceback (most recent call last): File “/usr/lib/python3/dist-packages/pip/_vendor/__init__.py”, line 33, in vendored __import__(vendored_name, globals(), locals(), level=0) ImportError: No module named ‘pip._vendor.pkg_resources’ During handling of the above exception, another exception occurred: Traceback (most recent call last): File “/usr/bin/pip3”, line 9, in from pip import main File “/usr/lib/python3/dist-packages/pip/__init__.py”, line 13, in from pip.exceptions […]

在64位Ubuntu 14.04 python 3.5.1(或3.4)上找不到libtiff模块

我的问题与此几乎完全相同,但没有一个解决方案适合我。 我假设有python 2.7的问题,因为我的问题是特定于python 3.5.1 TL; DR:以下命令均不起作用,详情如下 sudo apt-get install libtiff5 sudo dpkg -i libtiff5_4.0.3-7ubuntu0.3_amd64.deb python setup.py install( pylibtiff ,一个libtiff包装器) conda安装libtiff pip安装libtiff 我尝试过的: 卡雷尔的方法 cornelis@Bob:~$ sudo apt-get install libtiff5 Reading package lists… Done Building dependency tree Reading state information… Done libtiff5 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 342 […]

在Ubuntu上打破Python3 pip3安装

我在我的Ubuntu16.04上成功安装了python3和pip3,但pip3安装已损坏。 我该如何解决这个问题? pip3 install的错误信息如下: # pip3 install xlwt Traceback (most recent call last): File “/usr/bin/pip3”, line 9, in from pip import main File “/usr/lib/python3/dist-packages/pip/__init__.py”, line 21, in from pip._vendor.requests.packages.urllib3.exceptions import DependencyWarning ModuleNotFoundError: No module named ‘pip._vendor.requests’ 输出sudo -H pip3 install –upgrade pip sudo -H pip3 install –upgrade pip Traceback (most recent call last): File “/usr/bin/pip3”, […]

缺少包CommandNotFound

我最近从15.10更新到16.04,现在我的python3似乎搞砸了。 在升级之前,我安装了python3.4和python3.5.1 (手动)。 升级删除了python3.4并将其替换为python3.2和python3.1 。 新的python3.5.1删除了我的python3.5.1安装。 但现在我面临很多问题: 检查这个问题 comand-not-found不再起作用并且与此追溯崩溃(1) 如果我尝试用python3.2运行python3.2 commmand-not-found (2) 我剥掉了一些东西,因为它总是一样的。 我不想使用旧的python3版本,所以我该如何解决这个问题呢? 为什么有python3.1 ? (1) me@my-machine:~$ whareis systemd Traceback (most recent call last): File “/usr/lib/command-not-found”, line 27, in from CommandNotFound.util import crash_guard ImportError: No module named ‘CommandNotFound’ (2) Traceback (most recent call last): File “/usr/lib/python3.2/dbm/gnu.py”, line 6, in from _gdbm import * ImportError: […]