Jump to content

Recommended Posts

Guest Qaaolchoura
Posted

Hi, I've had a problem with Python in the Terminal which I've known for awhile, but always avoided by using IDLE. Unfortunately, I'm trying to learn Django, which isn't IDLE-compatible (and doesn't even like working in Python mode in the Terminal) so I need to fix it. The problem is this:

 

  1. Python, as accessed by the Terminal's "python command" is stored under user/local/lib
  2. Python's packages, as installed by apt-get, aptitude, or pip, install under user/lib

 

Thus, I can't import packages from the terminal without changing the path, and the path only stays changed for one python session. After looking up how to modify the path permanently, and finding at least one method which still only works temporarily, I've found that most posts on the topic say that modifying the path is a hackish attempt to cover up deeper issues.

 

I know what those deeper issues are. I don't know how to either change the default install of packages to usr/local/lib, or change the python command in terminal to work from usr/lib. I could of course try to copy everything from user/lib to usr/local/lib, but I'm worried that might introduce some other issues.

 

Any thoughts?

 

Thanks,

~Q

 

Continue reading...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...