Tag Info

Hot answers tagged

7

You are forgetting to supply a mandatory argument. Usage: eui_install.py [ZIPFILE] means you have to include a name of a zipfile. The command is: python eui_install.py zipfile where zipfile is a file name you need to supply (probably the mod you want to edit looking at the script). The files in the designated folder still have names with ...


6

Specify the path. If you're in the directory with the binary, that's as simple as: ./python Or yes, do as Muru suggested and add it to the path. That said, changing the path could interfere with how applications (running under your user) call Python. If you deflect them to the wrong version, they may function incorrectly. There is not a good way to ...


4

Make sure your API endpoint URI is exactly as shown in the Landscape server. Typically it will end with /api/ (trailing slash included). And, of course, that the access keys are correct.


3

The default security policy for sudo normally prevents it from inheriting environment variables. However unless the particular variable is explicitly denied in your sudoers file, you should be able to allow it by specifying the -E option to sudo, e.g. $ VAR="value" python -c 'import os; print os.environ.get("VAR")' value $ $ VAR="value" sudo python -c ...


3

You can use pip3 (which is just normal pip but in system's Python3 packages). Normally I would suggest avoiding using pip for installing stuff globally but given there are no packages for this that could overwrite the files, there's nothing to lose. It's quick and simple: sudo apt-get install python3-pip sudo pip3 install sympy


2

gcalcli is using a Python library (parsedatetime) that is out of date in 14.04, I found the solution in this bug report: https://github.com/insanum/gcalcli/issues/132 So basically we need to upgrade python-parsedatetime, you can either do this with pip if this is your preferred method: sudo pip install --upgrade parsedatetime Or via Chris Johnson's ...


1

Well, I ended up creating an AWS instance based on Ubuntu 13.04, and then move all python packages over from EC2 to my server. This did not fix the problem with apt-get and dpkg, but it let me run other python-based commands (e.g. ufw and do-release-upgrade). Then I used do-release-upgrade to switch to Saucy and then Trusty. There were some errors during ...


1

This is easy to solve - you just need to make sure that your file is saved before executing the code.


1

Create a folder for your project inside your /home directory or if you prefer you can create it on your desktop and give it any name (Let's say for example, Start ). So you have to go to your created folder by typing in the terminal cd /home/username/Start. The command cd is intended to go to the directory. And you will make there a new directory called ...


1

Use virtual environments. This allows you to make unlimited amounts of virtual python environments, so you can easily use different sets of packages for different projects. Install the following: sudo apt-get install python-virtualenv Then: sudo pip install virtualenvwrapper Then, append the following to your bashrc file: export WORKON_HOME=~/Envs ...


1

After a few days of trial and error I found the answer to my question. I decided to post my solution to my question because it might help someone who is experiencing the same problem. Here are the steps that I followed. Open the terminal crt+alt+t Type gedit ~/.local/share/applications/mimeapps.list Under [Added Associations] list add ...


1

Ubuntu 14.10 comes with Python 2.7.8 (available as python, python2 and python2.7) and Python 3.4.2 (available as python3 and python3.4) installed by default. As many programs depend on them you can't remove any of them without breaking your system.


1

Ubuntu comes with Python installed by default, you don't need install any .tgz file downloaded from http://python.org/download/ The library for access postgresql in Python called "psycopg" See: psycopg docs here: http://initd.org/psycopg/docs/ To install psycopg, you need to first install the build dependencies: Make the terminal: sudo apt-get install ...


1

Your line that constructs getRpm should probably be: getRpm = 'wget %s' %url Basically, just remove the extra double-quotes.


1

In the debian/install file, add this line (or only use this line, if there aren't any others in there): moduleFileName /usr/local/lib/python2.7/site-packages/ You basically use the same line format for each file (or directory): filename /path/to/destination/


1

Found this on another site and it worked for me. Very simple solution! "I'm using Ubuntu 14.04.1 and needed to change the location of blender from the default of 'blender' to '/usr/bin/blender' since this is the path used to access blender. From a terminal screen type 'which blender' (omitting quotes) will display the path to the blender executable. Enter ...


1

Along with the other answers you can also use the full path to the executable. For example, if your python executable is in /home/user/some_dir/python then running the following command from in the terminal will do the job: user@user-home:~$ /home/user/some_dir/python For ease of use you can create an alias for the above command so that you don't have to ...


1

The package distribute 0.7.3 is a deprecated fork of Setuptools, install it only if you can't install Setuptools and need a compatibility layer. Before anything, execute in a terminal (xterm or Terminal are both fine) sudo apt-get install python-setuptools to install the distribution version of setuptools. If you really need to proceed, follow this ...


1

conda is a package management tool for installing scientific and analytical computing packages, which may be written in Python or other programming languages. conda also creates a virtual environment, like python-virtualenv does. conda is the package manager of Anaconda. Anaconda is a free Python distribution provided by Continuum Analytics, which includes ...



Only top voted, non community-wiki answers of a minimum length are eligible