PYTHONPATH is an environment variable that Python uses to get the list of directories to search for modules and files

learn more… | top users | synonyms

0
votes
3answers
29 views

Will the first source in PYTHONPATH always be searched first?

Will the sources in PYTHONPATH always be searched in the very same order as they are listed? Or may the order of them change somewhere? The specific case I'm wondering about is the view of PYTHONPATH ...
0
votes
1answer
21 views

Access a Python Package from local git repository

I have a local git repository on my machine, let's say under /develop/myPackage. I'm currently developing it as a python package (a Django app) and I would like to access it from my local virtualenv. ...
5
votes
1answer
5k views

How and why does PyCharm alter Python's import logic?

I have a PyCharm 1.2.1 on Windows. I have to edit different branches of the same project - somewhat heavy branches, because they live in different folders on disk - say it to be c:\apps\alpha and ...
1
vote
2answers
447 views

python and bpython using different PYTHONPATHs in Virtualenv

Something strange and unexpected is happening with the sys.path of any virtual environment I set. For example, a clean env: $ virtualenv test $ source test/bin/activate (test) $ This is the ...
0
votes
1answer
28 views

weird python sys.path values

Pay attention to the leftmost value of sys.path, besides the empty string... from root directory, python -c "import sys; print(sys.path)" gives me: ['', '/home/brian/code/indep/chimai', ...
1
vote
0answers
26 views

Keeping Python packages with the same top-level name in different directories

I have several Python packages that I'd like to keep on separate filesystems but which unfortunately share the same top-level module name. To illustrate, the directory structure looks like this: ...
1
vote
0answers
15 views

PyDev Jython module_not_found_in_the_pythonpath, autocomplete not working

I've been searching for two days now trying to get PyDev to recognize my external .JAR (It's obfuscated for protection), however no matter what I do it doesn't want to work. I've read over the ...
0
votes
1answer
106 views

Setting python path for sublimerepl from sublime text?

I use python portable along with sublime portable of a memory stick and decided to install sublime REPL however when trying to use python portable as the build path for sublimerepl it does not specify ...
4
votes
1answer
90 views

VCS and Python project structure: How to setup the PYTHONPATH automatically?

There are many suggestions on the web what the structure of the Python project can/shall be, e.g. What is the best project structure for a Python application?. "proj-dir" +- doc +- apidoc +- scripts ...
0
votes
1answer
77 views

Enthought EPD and Enthought Canopy, invoking specific ipython from each distribution

I have installed the new Enthought canopy on my local mac system which already had an installation of Enthough EPD. I made Canopy my default python installation and was wondering how I might be able ...
1
vote
1answer
135 views

PATH issues with homebrew-installed Python 2 and Python 3 on OSX

I'm relatively new to programming and have searched 'til my fingertips were blue, but can't seem to find a solution to the problem I'm having. I have homebrew-installed versions of Python 2 and ...
3
votes
1answer
61 views

Where's the recommended place to put small python convenience modules

I've amassed a small collection of small handy ad hoc scripts that I would like to have available to me in all my python projects and ipython interactive sessions. I would like to add to and clean up ...
0
votes
1answer
60 views

Adding installed file to PYTHONPATH

This is a follow up to this question. I have installed httplib2 using python setup.py install the file I did this on was on my Desktop. Now I have to include the installed module in my PYTHONPATH in ...
0
votes
1answer
35 views

Issue with $PYTHONPATH

I get the following message when trying to run virtualenv . --no-site-packages You are attempting to install a package to a directory that is not on PYTHONPATH and which Python does not read ".pth" ...
0
votes
1answer
74 views

How to change the default python path?

I have a problem with changing python version,I'm using centos6 and i need to change the python version from 2.6 to 2.7. [root@master Downloads]# which python /usr/bin/python [root@master Downloads]# ...

1 2 3 4 5 14
15 30 50 per page