Tag Info

New answers tagged

1

Ubuntu has Python 2.7 set as default. So, running python or pip normally runs the 2.7 version. If you want to run version 3 then you have to use the command python3 and pip3 pip3 -V python3 -V For the virtual envirmoment if found the command pyvenv-3.4 pyvenv-3.4 myenv_folder #Creates a python 3.4 virtual enviroment in the myenv_folder cd myenv_folder ...


1

The "Python.h" error message indicates that you are missing the python3-devpackage, which you need to build any Python extensions (Python modules written in C), which you can get with: apt-get install python3-dev To get up and running from scratch: apt-get update && apt-get install python3-dev python3-pip build-essential libzmq3-dev pip3 install ...


1

The steps that worked for me: On MAC OSX 10.9.5 1. Download and install Python-3.4 manually. cd /Users/<userid>/Python3/Python3.4 tar -zxvf Python-3.4.3.tgz ./configure --prefix=/Users/bdastur/Python3/Python-3.4.3 make; make install Create a virtualenv. /Users/bdastur/Python3/Python-3.4.3/bin/pyvenv py3env source py3env/bin/activate Note ...


0

easy_install3 needed upgraded. This can be done by running the following in the terminal: sudo easy_install3 -U pip


1

Traceback says you're missing requests lib. Try apt-get install --reinstall python3-requests pip as any other application require certain libraries. In this case it requires requests lib to download files from net. If you check python3-pip package requirements ( apt-cache show python3-pip ) you will see all the required packages. After installation you can ...


0

You can use notify-send as an external command: import subprocess as s s.call(['notify-send','foo','bar']) Or you can use the notify2 module (sudo apt install python3-notify2): import notify2 notify2.init('foo') n = notify2.Notification('foo', 'bar') n.show() There are more examples included in the package (see ...


3

The line: yml = yaml.load(open(sys.argv[1])) ...assumes you pass the value, to be used in the line, as an argument when you call the script: <script> <argument> but probably you just ran the script without any argument. Arguments are listed, where the command to call the script is the first item in the list (the first item is index 0). ...


0

I am extremely sorry for misguiding the question. The problem was not with installation of python3. I have another compiled python that is part of a software called UV-CDAT. This software have sourced the path of its own python and is python 2.7.7. This software is causing the actual problem. When I remove the PATH set to this software VIM is working. Once ...



Top 50 recent answers are included