|
I decided to pick up Python, I have a fair amount of experience with Perl and C++ but want to update my skillset a bit. My laptop that runs Linux is having hardware problems so I decided to fart around on my Windows gaming PC with this. I'm working through a tutorial book but just encountered an issue. They want you to mess around with turtle which is part of the standard library. If I call my script or invoke Python in a command shell from my base user directory (C:\users\TGS) I can import turtle and work with it just fine. If I try to import it from a folder on my desktop, I can't. I just get an unknown attribute error since it can't find the library. I've checked the PATH and the installation directory for Python is there so uh, anyone know what gives?
|
# ¿ Mar 21, 2017 01:36 |
|
|
# ¿ May 2, 2024 20:37 |
|
I just uninstalled Python and installed Anaconda instead. Having the same problem though.code:
I can only import sys and print sys.path if I run python from a shell in C:\users\TGS. It shows the default Anaconda install directory, scripts sub folders and etc. I just want to be able to run scripts from any directory instead of being locked to my user directory.
|
# ¿ Mar 21, 2017 13:17 |
|
Haha holy poo poo I hope it's that simple, just got into work but I'll RDP into my machine later and check. Thanks man.
|
# ¿ Mar 21, 2017 13:42 |