New answers tagged

0

idle3 is a package that depends on idle-python3.5, python3 and python3-tk (module for portable GUI with Tkinter). Here is a visualization of the dependency relationship between the differents packages.


0

This is not a solution but a fix I added for p in sys.path: print(p) to /usr/lib/python3.5/_sysconfigdata.py. The path /usr/lib/python3.5/plat-x86_64-linux-gnu was substituted with /usr/lib/python3.5/plat-gnu. Fixing it I fixed it by adding the following workaround to the file: plat_path = "/usr/lib/python3.5/plat-x86_64-linux-gnu" if(not plat_path ...


1

Found the answer here. You need to use the --system-site-packages option when creating your virtualenv if you want this to work. So in my example the correct way to do it would be virtualenv --system-site-packages -p python3 ./test Thanks for helping guys!


0

I've solved the same problem just by using python 2.7 instead of python 3.4: sudo rm python sudo ln -s python2.7 python sudo apt-get update sudo apt-get upgrade sudo rm python sudo ln -s python3.4 python


0

As stated in the comments, Ubuntu 16.04 comes installed with Python 3.5.1, so there is no need to install it separately.


0

On terminal type: sudo apt-get install --reinstall python3.4 That will fix your problem, if this does not help install it using: dpkg -i {The full name of python 3.4 package deb file}


0

Guys there is an easy way. $ sudo apt-get install python3 virtualenvwrapper $ mkvirtualenv <venv> -p python3 $ workon <venv> This virtualenv comes with pip and other python setup tools installed. By far the most easiest way to manage Python 2.7/3.x virtual environments. $ pip install Django


0

Looking at the traceback, pip3 is trying to create a directory in /usr/local/lib/python3.5/dist-packages but it does not have permissions to do so because you probably did not run pip3 with sudo. The best way to install timestring though is to avoid sudo altogether and use virtualenv instead. The following code worked for me: sudo apt update && sudo ...


1

It's trying to install in a system directory and your user doesn't have permissions to do that. You have 2 options: Install locally, usually in a virtualenv. See here: http://docs.python-guide.org/en/latest/dev/virtualenvs/ Install globally, with sudo so you have root privileges: sudo pip install timestring Personally I prefer option 1, and to keep ...


2

It seems like you may not have TKinter for Python 3 installed. Install Tkinter by running: sudo apt install python3-tk


1

The python3-netcdf4 package does not exist for Ubuntu 14.04 as you can see from http://packages.ubuntu.com/search?suite=all&searchon=names&keywords=python3-netcdf4. However, netCDF4 can be found on PyPI (https://pypi.python.org/pypi/netCDF4). Instead of using sudo pip to install Python packages at the system level, I recommend installing them via ...


0

You need to install the tk-dev package by running sudo apt install tk-dev. Then, reinstall matplotlib in the virtualenv by running pip --no-cache-dir install -U --force-reinstall matplotlib. python -c 'import matplotlib as mpl; print(mpl.get_backend())' should now say TkAgg.


1

It has nothing to do with github. It is the Python API for GObject Introspection (gi). The repository portion is related to the repository of bindings available via GObject Introspection (girepository). Importing bindings via this method is what replaces the old straight Python bindings for gobject, glib, gtk and similar libraries.


3

gi.repository is the Python module for PyGObject (which stands for Python GObject introspection) which holds Python bindings and support for the GTK+ 3 toolkit and for the GNOME apps. See Projects/PyGObject on the GNOME Wiki. It has nothing to do with GitHub.


3

While relatively little in 12.04's core system relies on Python 3, I would always and in the strongest terms recommend that you leave the default Python environments to themselves. That is to say: Don't mess with the /usr/bin/python{,2,3} etc links. Don't sudo {pip install,easy_install} anything into the system's site packages. This is contrary to what ...


0

I found my solution again. When I was finding through various links and finally found in this link. Just have to reinstall the python3 version and enter hash -r to restore the version back, by the following commands. cd "to the directory where downloaded python is" ./configure make make test sudo make install hash -r


0

I am not sure what was the error. But now I have succeeded the above problem. What I have done is, Step 1) Restarted my PC 2) Ran the following commands sudo apt-get update sudo apt-get upgrade wget http://python.org/ftp/python/3.3.2/Python-3.3.2.tar.bz2 tar -xvjf ./Python-3.3.2.tar.bz2 cd ./Python-3.3.2 ./configure --prefix=/opt/python3.3 make &&...


2

To install the biogeme program, download the deb file at http://biogeme.epfl.ch/distrib/biogeme_2.4.0-1_amd64.deb and run sudo dpkg -i biogeme_2.4.0-1_amd64.deb. This will install the necessary binaries to your /usr/local/bin directory. As can be seen in section 4 of page 6 of the PDF at http://biogeme.epfl.ch/documentation/bisonfirstmodel-2.4.pdf, to use ...


0

There is no straight solution, however, there is following workaround import os def ls-lrt(): print(os.listdir(".")) To check the files in the current directory, use the following function ls-lrt()


1

For now, according to https://github.com/tensorflow/tensorflow/issues/2188#issuecomment-216186066, the solution is to download and rename the wheel and install using the renamed wheel: wget https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl mv tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl tensorflow-0.8.0-cp35-...


1

Edwinksl's comment but with sudo -H sudo -H pip install jupyter where jupyter is the notebook.notebookapp application.


0

Try from a terminal: sudo apt-get install python3-easygui Or install synaptic package manager: sudo apt-get install synaptic Then install it from there.



Top 50 recent answers are included