Changing files to RUN???
Answered
I'm a newbie...
How do I change files to run??? I opened several tabs... each tab is a python program... I ran program1.py ... and now I want to runs program2.py... but every time I try to run program2.py... it always runs program1.py, even if I close program1.py.
*** HOW do I switch programs? Or tell Pycharm to ignore program1;py and use program2.py.
- There is nothing on the menu, nor can I find anything in Google, or Stack Overflow...
Help
Please sign in to leave a comment.
Also, I even closed Pycharm... and reopened... it still runs program1.py!!!
This is NUTS!
Each time you run a program, it creates a Run Configuration that contains the information needed to setup running the program. PyCharm can have multiple run configurations that you choose from the toolbar, just to the left of the green play button.
If you are editing a different file and want to run it, the simplest thing to do is right click in the editor and choose Run `filename'. This will create a run configuration for that file and run it. It will also remember this as the last-run Run Configuration. To go back to the previous run, either do the right-click thing again, or switch the active run configuration in the toolbar dropdown.
When I right click within program2.py, it only gives options to "run program1.py" ...
Here is more:
When you say "I even tried to change...would not run world.py", note that the "Name:" of the run configuration still says testll. When you set "Script:" to world.py, click Ok, then click the green play button, what does the first line of the output in the Run window say?
Ok, I see.. thanks... though I don't know why the configuration name took the same name as my first program1.py... but thanks...
An alternate issue... I'm trying to install basemap, and use Python 2.7 at home...and it installed OK, using anaconda... yet when trying to install, for Python 2.7 using the Pycharm install package helper, it doesn't install..
C:\Python27\ArcGIS10.3\lib\site-packages\pip\_vendor\requests\packages\urllib3\util\ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
SNIMissingWarning
C:\Python27\ArcGIS10.3\lib\site-packages\pip\_vendor\requests\packages\urllib3\util\ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Could not find a version that satisfies the requirement basemap (from versions: )
No matching distribution found for basemap
To help future people that might look through the forum, can you start this in a new ticket? Perhaps something with a subject like "TLS error when installing packages through PyCharm". Also, please include information about your operating system setup.
ok thanks for your help
Jarrell