Tag Info

New answers tagged

0

Might you have your Python virtual environment messing up the plugins as I had? I got plugins like codecomment working by hiding my PYTHONPATH and python virtual environment before launching Gedit. Since I still want to use my venv I have an executable script 'gedit' in my path with #!/bin/bash PYTHONPATH= ...


2

It is not safe to accept the removal of python2.7 because uninstalling python2.7 will also remove a lot of other packages that you need. The safe way to accomplish what you are trying to do in Ubuntu 12.04 is to install the version of MySQL Workbench from the default Ubuntu repositories. In order to do this, you need to repair your package catalog. Fixing ...


0

If you wish to install the latest version of Django globally, a better option is to use pip, the Python package manager. First, you need to install the pip package manager. Refresh your apt package index: sudo apt-get update Now you can install pip. If you plan on using Python version 3, install using the following commands: sudo apt-get install ...


4

You probably need to run the script like: sudo /path/to/myScript sudo ./myScript (if the script is in the current directory) The reason you get command not found is the script is not in the current user's PATH directory. However, using sudo runs it as a different user - root (compare echo $PATH and sudo -i then echo $PATH to see). So of you want to add ...


0

I had this same error on a new 14.04 installation. I fixed it by making sure all scipy dependencies were installed via: sudo apt-get install python-pip python-dev build-essential libatlas-base-dev gfortran I believe it was just sudo apt-get install gfortran that was necessary. If you try that first and let us know how it goes, would be helpful. This was ...


1

I finally got it. sudo pip uninstall virtualenv sudo pip3 install virtualenv That simple.


3

The end of that tutorial is really bad. Here's what it says: rm /usr/local/bin/python ln -s /usr/local/bin/python3.3 /usr/local/bin/python This means the global system Python is changed to 3.3. Per my earlier comment, this will do a lot more damage than just breaking your development environment. Python 2 and 3 aren't compatible and they have different ...


0

Just install pip for python3: sudo apt-get install python3-pip And afterwards your can use pip3 as yask comments: pip3 install mysql-connector


0

I had the same issue with my ubuntu desktop. My python book told me to call python by just typing python in the terminal but it was only calling the previous python version 2. First check if you have python version 3 or not. Open command terminal, type python3 Do you see the acknowledgment that you do? done. If you don't; install using ...


0

Ah! The problem you seem to be facing is you can't create virtualenv with python3. And to install dependencies for python3 environment you run pip3 install package-name Follow these steps for creating virtualenv in python3 environment: virtualenv -p /usr/bin/python3 yourenv source yourenv/bin/activate pip3 install mysql-connector


1

I'll post the solution that I found, which has to do with bugs in each software. This issue is solved by adding the UTF-8 encoding to specific calls to open files that were missing it, like this example, where f = open(CHANGELOG,'r') changes to f = open(CHANGELOG,'r', encoding = "utf-8")


1

Most likely you following a PyGtk 2 guide when trying to implement this: According to the GTK 3 documentation there is no function named gtk_window_add_accelerator, but there is a function named gtk_accel_group_connect that looks like its going to get the job done. When working with GTK documentation it's usually 80% gut feeling and 20% checking the docs to ...



Top 50 recent answers are included