WebFaction
Community site: login faq

Hi, I'm a complete newbie here, but I'm trying to install pyramid 1.5 through SSH and I think the problem is that it's trying to install it with python 2.4 instead of python 2.7

I tried to set the python path to 2.7 manually but it doesn't seem to be working. Any help would be appreciated!

[andromeda@web443 webapps]$ export PYTHONPATH=[home/andromeda/lib/python2.7] [andromeda@web443 webapps]$ python Python 2.6.6 (r266:84292, Jan 22 2014, 09:42:36) [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information.

exit() [andromeda@web443 webapps]$ echo $path

[andromeda@web443 webapps]$ echo $PATH /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/andromeda/bin [andromeda@web443 webapps]$ ^C [andromeda@web443 webapps]$ virtualenv --no-site-packages env Traceback (most recent call last): File "/home/andromeda/bin/virtualenv", line 7, in ? sys.exit( File "/usr/local/lib/python2.4/site-packages/pkg_resources.py", line 277, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/local/lib/python2.4/site-packages/pkg_resources.py", line 2180, in load_entry_point return ep.load() File "/usr/local/lib/python2.4/site-packages/pkg_resources.py", line 1913, in load entry = import(self.module_name, globals(),globals(), ['name']) File "/home/andromeda/lib/python2.4/virtualenv-1.11.2-py2.4.egg/virtualenv.py", line 1566 cp_or_ln = (os.symlink if symlink else copyfile) ^ SyntaxError: invalid syntax [andromeda@web443 webapps]$

asked 13 Feb '14, 07:54

Andromeda
1114
accept rate: 0%


Ok, there are few problems here.

First this..

export PYTHONPATH=[home/andromeda/lib/python2.7]

... should be this ...

export PYTHONPATH=/home/andromeda/lib/python2.7:$PYTHONPATH

Second, the "python" command on your server will run the default system Python, which is Python 2.6. If you want to run Python 2.7, then run it with the "python2.7" command.

Third, you've installed virtualenv with Python 2.4 somehow, so you need to re-install it with Python 2.7, eg:

easy_install-2.7 virtualenv

I hope this helps!

permanent link

answered 13 Feb '14, 18:05

seanf
12.2k41836
accept rate: 37%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×337
×52
×17
×2

question asked: 13 Feb '14, 07:54

question was seen: 1,989 times

last updated: 13 Feb '14, 18:05

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM