Linked Questions
18 questions linked to/from How do I find out my PYTHONPATH using Python?
183 votes
5 answers
102k views
How to get the PATH environment-variable separator in Python?
When multiple directories need to be concatenated, as in an executable search path, there is an os-dependent separator character. For Windows it's ';', for Linux it's ':'. Is there a way in Python ...
22 votes
10 answers
78k views
PyCharm doesn't detect interpreter
I want to use PyCharm, so I downloaded and installed it (v. 4.5, community edition). I had previously installed Python 3.5 64-bit from python.org (I'm using Windows 10). To start using PyCharm, I need ...
41 votes
1 answer
57k views
How to set PYTHONPATH to multiple folders
In ~/.bash_profile file (OS X) I've set PYTHONPATH to point to two folders: export PYTHONPATH=/Applications/python/common:$PYTHONPATH export PYTHONPATH=/Applications/sitecustomize:$PYTHONPATH Even ...
8 votes
4 answers
64k views
Python unable to import custom module despite having __init__.py
I have a folder with a __init__.py File __init__.py: #!/usr/bin/python2 flags="test" File main.py: #!/usr/bin/python2 import foldername def main(): print foldername.flags if __name__ == '...
1 vote
1 answer
13k views
Can't import plotly.express in .py script despite being installed
Before this gets marked as duplicate, I've been wrestling with this for quite some time and have tried all the troubleshooting options I have found online. Hopefully someone out there knows what's ...
1 vote
2 answers
3k views
Imports working with raw file, but not in IDLE
UPDATE 10 Secs later Fixed properly now, and thanks to JF and Gauden. UPDATE I have found a temporary fix by saving the IDLE file in the directory the other working file is in. (I would still like to ...
0 votes
2 answers
4k views
how to solve error module sklearn.cluster?
i want to make recommendation location but i have problem with my sklearn. i have been update my library but it is not work. i use python 2.7 with anaconda please help me :D it is my library code. ...
0 votes
1 answer
2k views
ModuleNotFoundError: No module named 'memoize'
I tried this, pip install memoize Requirement already satisfied: memoize But every time i run pytest, I get the above error ModuleNotFoundError: No module named 'memoize' and it fails to load the ...
1 vote
1 answer
2k views
Pip install pynrrd
So I apologize in advance if this is really simple but I cannot seem to get the pynrrd package to import into pycharm. I tried using pip And I tried the instructions at the repo but pycharm just isn'...
1 vote
1 answer
766 views
Why does this python script only work from IDLE on Ubuntu 12.04?
Edit Written in C it works like a champ. I began noticing that the python would fail unpredictably. The bash solution worked too but I wanted to be able to easily check if it was running so I wrote ...
0 votes
3 answers
932 views
pip says modules are there, but Python 3 program cannot find them
I have some old code I'm trying to use which uses httplib2 Python lib. The same exact code works fine on Linux (e.g. Raspberry Pi). I have used pip to uninstall the httplib2 lib and pip3 to re-...
1 vote
0 answers
596 views
How to set IPython with sublimeREPL on Mac 10.9.5
I just started using Sublime+SublimeREPL recently to code in python. I also use the IPython console within sublimeREPL to send the code, but the truth is that I am not using it adequately. When I ...
0 votes
1 answer
464 views
Does somebody know how to Install Pandas on R? Without getting the error unexpected symbol in "import pandas"
I am trying to use pandas on my RStudio 2022.07.1 Build 554 © 2009-2022 RStudio, PBC "Spotted Wakerobin" Release (7872775e, 2022-07-22) for Windows Mozilla/5.0 (Windows NT 10.0; Win64; x64) ...
1 vote
0 answers
274 views
How can I use Python path in my Visual Studio Code extension?
I'm writing my first VSCode extension. In short, the extension opens a terminal (PowerShell) and executes a command: term = vscode.window.activeTerminal; term.sendText("ufs put C:\\\Users\\<userID&...
0 votes
1 answer
136 views
Trouble importing libraries
I am having issues when I try to import requests and beautifulsoup into my script. I have created a virtual environment in this path: C:\Users\eldet\AppData\Local\Programs\Python\Python311\venv and ...