Linked Questions

183 votes
5 answers
102k views

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 ...
Mark Ransom's user avatar
22 votes
10 answers
78k views

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 ...
Asier R.'s user avatar
  • 503
41 votes
1 answer
57k views

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 ...
alphanumeric's user avatar
  • 19.6k
8 votes
4 answers
64k views

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__ == '...
jck's user avatar
  • 2,088
1 vote
1 answer
13k views

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 ...
Ahren Bader-Jarvis's user avatar
1 vote
2 answers
3k views

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 ...
ACarter's user avatar
  • 5,747
0 votes
2 answers
4k views

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. ...
Sulis's user avatar
  • 1
0 votes
1 answer
2k views

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 ...
julian joseph's user avatar
1 vote
1 answer
2k views

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'...
Frikster's user avatar
  • 2,913
1 vote
1 answer
766 views

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 ...
JB0x2D1's user avatar
  • 990
0 votes
3 answers
932 views

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-...
Digital Larry's user avatar
1 vote
0 answers
596 views

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 ...
Javier's user avatar
  • 1,550
0 votes
1 answer
464 views

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) ...
daewon_stackoverflow's user avatar
1 vote
0 answers
274 views

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&...
oivron's user avatar
  • 75
0 votes
1 answer
136 views

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 ...
Yannis Volos's user avatar

15 30 50 per page