Since a week ago I am learning Python with the O'Reilly book for beginners. Sadly I am totally stuck at the beginning of chapter 4. Where I have to install the swampy package. I am using the atom text editor to code and Python 3.x. I have no idea what everything means.
Asked
Active
Viewed 56 times
0
-
We can't help you if we don't know what the problem is. Can you paste the error output that you get when you try to install into your question? – snakecharmerb Jan 10 '19 at 17:33
-
I get this when I am trying to do it like its explained. – HavanaClub Jan 10 '19 at 17:38
-
[Command: python3 -u /Users/julianbickel/Documents/Python/Learning/Test1] Traceback (most recent call last): File "/Users/julianbickel/Documents/Python/Learning/Test1", line 1, in
from swampy.Turtleworld import * ModuleNotFoundError: No module named 'swampy' [Finished in 0.074s] – HavanaClub Jan 10 '19 at 17:38 -
I don't know how to add the module or package, couldn't find the solution. – HavanaClub Jan 10 '19 at 17:39
-
1In your terminal, install it by executing `pip install swampy`. Some info about the package on [pypi](https://pypi.org/project/swampy/), which is where most python packages are install from. – snakecharmerb Jan 10 '19 at 17:43
-
So I guess I got that, pip is installed and when I execute 'pip install swampy' this appears 'error: could not create '/Library/Python/2.7/site-packages/swampy': Permission denied'. Is it maybe because the of the Python version? – HavanaClub Jan 10 '19 at 19:36
-
You probably need to install it as sudo/administrator (I'm not a mac user). Note that you sat you are using Python 3, but your pip error references Python 2. So maybe try `python3 -m pip install swampy` first, which should install the package for Python 3, and may not requires admin rights. – snakecharmerb Jan 10 '19 at 19:52
-
nice that worked, now its written that I need Tkinter and I tried to install like swampy and looked for downloads in the inter net but couldn't finde any – HavanaClub Jan 10 '19 at 20:10
-
You may already have it. Otherwise I think that's a new question. – snakecharmerb Jan 10 '19 at 20:11
-
1ok I guess I will make it from here, thank you very much you really helped me a lot and saved my evening. greetings from Germany. – HavanaClub Jan 10 '19 at 20:16