Tag: python3

pyvenv-3.4在Ubuntu 14.04.3中消失了吗?

这就是我在Ubuntu 14.04.3 LTS上用Python 3.4创建一个venv直到上周所做的事情: » pyvenv-3.4 –without-pip venv 我这样做是因为这个 。 但是从昨天开始: » pyvenv-3.4 –without-pip venv The program ‘pyvenv-3.4’ is currently not installed. You can install it by typing: sudo apt-get install python3.4 python3.4 肯定是安装的: » python3.4 –version Python 3.4.3 我最近可能做过apt-upgrade,但是……为什么pyvenv-3.4消失了?

我如何安装python 3.5.2?

这是我第一次使用ubuntu,所以我不知道如何使用它…我怎样才能安装python 3.5.2? 它已经是版本2.7.12。 我的Ubuntu版本是Ubuntu 16.04 LTS(桌面版)。

在Ubuntu 14.04上使用Apache2和libapache2-mod-wsgi-py3的AssertionError(Python 3.4)

在Ubuntu 14.04上,使用安装了libapache2-mod-wsgi-py3软件包的Apache2会在/var/log/apache2/error.log中出错 重现的方式很简单: sudo apt-get install apache2 sudo service apache2 restart # /var/log/apache2/error.log is “clean” sudo apt-get install libapache2-mod-wsgi-py3 sudo service apache2 restart /var/log/apache2/error.log给出以下错误: [Mon Jan 05 16:51:53.641332 2015] [:error] [pid 3141:tid 140703516379008] Exception ignored in: [Mon Jan 05 16:51:53.643563 2015] [:error] [pid 3141:tid 140703516379008] Traceback (most recent call last): [Mon Jan 05 16:51:53.643633 2015] […]

与Python 2同时安装和运行Python 3

我使用13.04,但我想安装两个主要的Python版本进行关于我的实际代码迁移的make测试。 可以在运行Python 2.7的同一台机器上安装Python 3吗? 我需要同时使用这两个版本,谢谢!

如何在python3.3中下载pygame

我正在使用Ubuntu 13.10。我有python 2.7和python 3.3。我已经在python 2.7中正确安装了pygame。如何在python3.3中安装它。pygame是否支持python3.3?

使用代理在ubuntu 16.04 LTS上安装pip3(用于python3)

我试过进入: sudo apt install python3-pip 我得到的错误是: $ sudo apt install python3-pip Reading package lists… Done Building dependency tree Reading state information… Done The following additional packages will be installed: libexpat1-dev libpython3-dev libpython3.5-dev python-pip-whl python3-dev python3-wheel python3.5-dev The following NEW packages will be installed: libexpat1-dev libpython3-dev libpython3.5-dev python-pip-whl python3-dev python3-pip python3-wheel python3.5-dev 0 to upgrade, 8 […]

在Anaconda将python3设置为默认值后,如何切换回python2?

最近,我在我的15.04上安装了Anaconda3-2.5.0-Linux-x86_64.sh并最终得到了这个! :~$ python –version Python 3.5.1 :: Anaconda 2.5.0 (64-bit) :~$ python2 –version Python 2.7.9 :~$ python3 –version Python 3.5.1 :: Anaconda 2.5.0 (64-bit) 在安装的最后时刻,我确实匆忙地输入了一些东西,我想它必须对此做些什么。 (好吧,我的错,我应该小心处理,但我现在需要帮助,而不是批评)。 AFAIK这肯定会打破其他程序。 现在我该怎么做? 我认为可行的。 可以使用别名来完成吗? alias python=python2 但我不确定。

在Python 3支持下获取Vim的最简单方法是什么?

我安装了Ubuntu 14.04,其repos中的Vim编译时没有支持Python 3。 因此,python-mode插件无法使用Python 3代码。 在Python 3支持下获取Vim的最简单方法是什么?

如何在Ubuntu中使用Python3.3创建virtualenv?

我正在运行Precise Pangolin amd64。 我从ppa安装了Python 3.3:fkrull / deadsnakes。 现在我想在virtualenv中实际使用这个新的Python版本。 但我怎么能这样做? 我收到以下错误: $ virtualenv –no-site-packages –distribute -p /usr/bin/python3.3 ~/.virtualenvs/pywork3 Running virtualenv with interpreter /usr/bin/python3.3 The –no-site-packages flag is deprecated; it is now the default behavior. New python executable in /home2/USERNAME/.virtualenvs/pywork3/bin/python3.3 Also creating executable in /home2/USERNAME/.virtualenvs/pywork3/bin/python Traceback (most recent call last): File “/usr/local/lib/python2.7/site-packages/site.py”, line 73, in __boot() File […]

命令未找到’不支持的语言环境设置’错误

我最近通过保留Linux Mint 13发行版的主文件夹来安装Ubuntu 12.10。 系统安装正常,但在开始时一切都是中文(甚至是终端中的文本)。 我设法通过编辑一些文件来解决这个问题,但是每当在终端中找不到命令时我仍然会收到错误。 这里是: Sorry, command-not-found has crashed! Please file a bug report at: https://bugs.launchpad.net/command-not-found/+filebug Please include the following information with the report: command-not-found version: 0.3 Python version: 3.2.3 final 0 Distributor ID: Ubuntu Description: Ubuntu 12.10 Release: 12.10 Codename: quantal Exception information: unsupported locale setting Traceback (most recent call last): File […]