Questions tagged [pythonpath]

PYTHONPATH is an environment variable that can be used to augment the default search path for module imports in Python.

PYTHONPATH is an environment variable that can be used to augment the default search path for module files in Python. Values will be added to sys.path.

758 questions
-1
votes
1 answer

WinPython: ImportError: No module named %name%

I installed WinPython-64bit-3.5.1.2 I installed it not into default directory C:\Python, but into a different one like C:\"....My path...."\WinPython-64bit-3.5.1.2. I downloaded a specific python project with all of its files and modules and placed…
P_Ser
  • 1
  • 2
-1
votes
1 answer

Strange PYTHONPATH behavior as sudo (Ubuntu)

I was having trouble about python unicode and so I reinstalled python on /usr/local/bin/python with option "--enable-unicode=ucs4". I added to ~/.bashrc all the paths to python modules and when I run as common user I'm able to import modules, but …
iury simoes-sousa
  • 1,440
  • 3
  • 20
  • 37
-1
votes
1 answer

Eclipse IDE: How to add this configuration during running?

For running of one of my C++ programs, using terminal(Ubuntu) I use Note: I'm trying to Embed Python in C++. Hence, PYTHONPATH in C++. Refer to Python/C API for more details. $ PYTHONPATH=. ./prog_name Sorry, I didn't know how to ask this question…
user3000805
  • 287
  • 1
  • 2
  • 14
-1
votes
2 answers

from appname.models import Publisher, Author, Book

Very new to Django so please bear with me. Following along with the Django polls project using The Django Book's classes (Publisher, Author, Book). I've been stuck on importing my models in the shell. The app name is General and the project name is…
-2
votes
2 answers

Python path and virtualenv problems on windows

My python is installed in c:\python27 and my site-packages is located in C:\Python27\Lib\site-packages. The problem, that I couldn't understand, is why if I put a script called base-install.py in site-packages and call it using C:\Users\max>python…
Maksim
  • 215
  • 2
  • 12
-2
votes
1 answer

Python Os Changing Path

I'm trying to change directory when calling a python file in cmd but it's not working ! I tried all types of slashes & back slashes & escaping, sometimes when the code runs, the directory isn't changing and stays the same where i start the py file…
-2
votes
1 answer

How to use python in command line in another directory

I am trying to run python in my command line. The location of my python directory is C:\Users\Samarth\AppData\Local\Programs\Python\Python37-32 Now i want to run python in a different directory named C:\Users\Samarth I have set the PYTHONPATH…
1 2 3
50
51