r/StackoverReddit • u/Bitter-Hope6731 • Jul 29 '24
Question pip not working
I am using python 3.12.4 on macOS, and am typing in on the first line "pip.install (fastf1)" if I don't type it like that (excluding the speech marks) I get a syntax error, but now I am getting a name error, where pip isn't defined, people have talked about command lines and virtual environments but I have no idea on how I should be typing this out, any help would be greatly appreciated.
2
Upvotes
6
u/GXWT Jul 29 '24
You don’t need the . or brackets
If this still doesn’t work, try instead:
1
u/Famlawyerz Jul 31 '24
Also try one of these:
Are you doing this from the Mac terminal in Applications > Utilities?
1
u/Famlawyerz Jul 29 '24
And if those commands don't work try one of these:
or
1
u/Relative-Variation16 Jul 29 '24
Try upgrading your pip then install
1
u/[deleted] Jul 29 '24
Try the command pip3 instead
1
u/chrisrko Moderator Aug 08 '24
INFO!!! We are moving to r/stackoverflow !!!!
We want everybody to please be aware that all future posts and updates from us will from now on be on r/stackoverflow
We made an appeal to gain ownershift of r/stackoverflow because it has been abandoned, and it got granted!!
So please migrate with us to our new subreddit r/stackoverflow ;)
1
u/[deleted] Jul 30 '24
[removed] — view removed comment