I have python 3.5 installed on OSX, however 'pip' does not work for some reason and 'install' is a syntax error, could some body give me step by step beginners directions to get this sorted.
Asked
Active
Viewed 99 times
-4
-
1Could you please post the error messages. Without them, we cannot help you step by step. – Dinesh Jul 10 '18 at 20:55
-
I suspect you are trying to run pip from inside a script or the interactive interpreter, when you should just run it from the OS X terminal. – MoxieBall Jul 10 '18 at 20:55
-
Possible duplicate of [Why does "pip install" inside Python raise a SyntaxError?](https://stackoverflow.com/questions/8548030/why-does-pip-install-inside-python-raise-a-syntaxerror) – phd Jul 10 '18 at 23:19
1 Answers
1
I am not a Mac user, but if you have python installed in your user, try this:
from subprocess import call
call(['pip', 'install', str(input('Name the module you wish to download: '))])

ѕняєє ѕιиgнι
- 823
- 3
- 11
- 32