Problem finding my folder via terminal
On Wednesday, June 6, 2018 at 12:19:35 PM UTC-4, T Berger wrote:
> I?m learning Python on my own and have been stuck for two days trying to get modules I created into site-packages. As a trial step, we were asked to change directly into the folder containing our modules. I typed ?cd mymodules? per instructions, but got this error message: ?-bash: cd: mymodules: No such file or directory.? I saved mymodules to my documents. What is going wrong here?
> When I tried to create a distribution file, I typed ?192:~ TamaraB$ mymodules$ python3 setup.py sdist.? I got this error message: ?-bash: mymodules$: command not found.? What should I do?
To answer your questions in order:
?Who asked you to do that??
I?m teaching myself python with the book, Head First Python. In the exercise I?m having trouble with, we?re supposed to install a module we created into site-packages.
?We'll need some more information about the computer you are using: what OS are you using (Mac, Linux, Windows, something else), what shell are you using, perhaps a file listing of your home directory. ?
I?m using Terminal in Mac Sierra (10.12.6).
?(I'm not sure what the 192 part means. Does that increase each time you type a command?) ?
I new to Terminal, but that 192 looked weird to me too. It doesn?t increase, just stays at 192. There is also a thin gray left bracket in front of the ?192? which didn?t copy into my email. Is there some way to restore the default prompt in Terminal? What is the default prompt?
Back to my problem. Your email helped me get into the mymodules folder, but I?m still stuck at the next step of the exercise I?m working on, which is to getting the module I created into site-packages. The folder, mymodules, contains three files: the module we created, a setup file (setup.py), and a readme file. The line of text we were instructed to type into our terminal was: ?python3 setup.py sdist.? In response, I got this error message: ?/Library/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python: can't open file 'setup.py': [Errno 2] No such file or directory?. What is going wrong here?
Thanks to any replies