

- DOWNLOAD NEWEST VERSION OF PYTHON FOR MAC HIGH SIERRA INSTALL
- DOWNLOAD NEWEST VERSION OF PYTHON FOR MAC HIGH SIERRA PRO
Python 2.7Ĭommand names contain a 2 or no digit: python2 (or python2.7 or Versions can both be installed on your system and will not conflict.Ĭommand names for Python 3 contain a 3 in them, python3 (or I found this as I was looking for the file path for Python 3.6 and happened upon the readme.txt that lives in that versions Application folder.
DOWNLOAD NEWEST VERSION OF PYTHON FOR MAC HIGH SIERRA INSTALL
What did work for me was simply typing pip3 install beautifulsoup4 The issue of resetting the PATH to prioritise Python 3 over 2 will take a little bit of research I found the linked post a little confusing, but it just means I have to do some reading. Yes, that was an obvious error on my part. To get back to your normal terminal, enter quit() That's because the commands you're entering are being interpreted by Python, not your terminal. Now you can install Beautiful Soup 4 for Python 3: pip install beautifulsoup4 I need both, because the python executable is in the first directory, and the pip executable is in the second.Īlternatively, change directory in your terminal to where the pip executable is: cd \Python\Python37\Scripts.

I'm running Windows, and I have these two directories in my PATH for Python 3: C:\Users\Admin\AppData\Local\Programs\Python\Python37\Ĭ:\Users\Admin\AppData\Local\Programs\Python\Python37\Scripts I would recommend editing your PATH so the Python 3 directories are before your Python 2 directories. It executes the first match and stops looking. When you enter python into your terminal, it'll look for an executable named python first in the current working directory, and then through each of the directories in your PATH. It seems that when you reinstalled Python 2.7, its directories were added to your PATH environment variable before the Python 3 directories. How do I now run the pip installer from the command line to install / direct the BS4 package in / to the python3.6.8 library To get back to your normal terminal, enter quit(). If I type "python3" into the command line in an attempt to get to v3.6.8 I get: Python 3.6.8 (v3.6.8:3c6b436a57, Dec 24 2018, 02:04:31)Įverything I type after that gives me either a syntax error It's probably really straight forward, however, I'm a bit of a newb here. When I try to change the directory to the Downloads folder, I get this: > cd /Users/User/DownloadsĬan anyone advise what the issue is with the Command line? And moreover how do I now run the pip installer from the command line to install / direct the BS4 package in / to the python3.6.8 library? It returns: Traceback (most recent call last): Type "help", "copyright", "credits" or "license" for more information.Įverything I type after that gives me either a syntax error or if I type: I've updated the Setuptools to the most recent spec using: python -m pip install -upgrade pip setuptools wheel The problem is that my Terminal indicates python v2.7.15 and is installing BS4 somewhere in that library but I'm needing it for python v3.6.8. I also have Python 3.6.8 loaded on the same computer, and am working my way through "Automate the Boring Stuff" which requires Beautiful Soup for web scraping.

DOWNLOAD NEWEST VERSION OF PYTHON FOR MAC HIGH SIERRA PRO
I have just reinstalled python 2.7 onto my macbook pro (running OS 10.13.6 High Sierra) as I had inadvertently removed it, not realising that it was required.
