# Help with python3 setup on MacOS

**URL:** <https://forum.freecodecamp.org/t/help-with-python3-setup-on-macos/215728>\
**Category:** Curriculum Help\
**Tags:** python\
**Created:** [August 8, 2018, 6:04am UTC](https://forum.freecodecamp.org/t/help-with-python3-setup-on-macos/215728 "2018-08-08T06:04:08Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![AdventureBear](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/adventurebear/32/74786_2.png) [@AdventureBear](https://forum.freecodecamp.org/u/AdventureBear)\
**Post date:** [August 8, 2018, 6:04am UTC](https://forum.freecodecamp.org/t/help-with-python3-setup-on-macos/215728/1 "2018-08-08T06:04:08Z")

</div>

I am trying to use python 3 and pip to install scrapy.

I’ve successfully installed it using homebrew, but when I type python at the terminal it is running python 2.7 (installed with the OS).

The installation instructions say that if this occurs ensure that the path is corret and that usr/local/bin takes precedence over usr/bin

Additionally pip “should be” installed along with python3, but when I type pip at the terminal there is no response.

Is this a path problem in both cases?

This is my path, i just removed all my old .rvm files from my RUby days to clean it up a bit:  
`/usr/local/opt/mongodb@3.0/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin`

---

<div class="post-metadata">

**Author:** ![Unstoppable](https://avatars.discourse-cdn.com/v4/letter/u/b77776/32.png) [@Unstoppable](https://forum.freecodecamp.org/u/Unstoppable)\
**Post date:** [August 9, 2018, 4:24pm UTC](https://forum.freecodecamp.org/t/help-with-python3-setup-on-macos/215728/2 "2018-08-09T16:24:33Z")

</div>

Please follow the instructions in this [Link](https://www.digitalocean.com/community/tutorials/how-to-install-python-3-and-set-up-a-local-programming-environment-on-macos) properly. Enjoy

---

<div class="post-metadata">

**Author:** ![AdventureBear](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/adventurebear/32/74786_2.png) [@AdventureBear](https://forum.freecodecamp.org/u/AdventureBear)\
**Post date:** [August 10, 2018, 3:59am UTC](https://forum.freecodecamp.org/t/help-with-python3-setup-on-macos/215728/3 "2018-08-10T03:59:00Z")

</div>

this doesn’t really address my question, but it’s an excellent article. Thank you.

---

<div class="post-metadata">

**Author:** ![AdventureBear](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/adventurebear/32/74786_2.png) [@AdventureBear](https://forum.freecodecamp.org/u/AdventureBear)\
**Post date:** [August 10, 2018, 5:28pm UTC](https://forum.freecodecamp.org/t/help-with-python3-setup-on-macos/215728/4 "2018-08-10T17:28:31Z")

</div>

The answer to the pip question is that installing python3 installed pip3. so the commands are python3 and pip3. The former was clear in the documentation. The latter only after reading the digital ocean article. However I am still not sure how to make python3 run when running phython as some tutorials suggest should be possible by having the proper PATH order. However it may be a moot point when it’s as easy as simply running python3 from teh terminal

---

<div class="post-metadata">

**Author:** ![balls77](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/balls77/32/84028_2.png) [@balls77](https://forum.freecodecamp.org/u/balls77)\
**Post date:** [August 13, 2018, 8:38am UTC](https://forum.freecodecamp.org/t/help-with-python3-setup-on-macos/215728/5 "2018-08-13T08:38:03Z")

</div>

2.7 is installed in all macs at the terminal type python

---

<div class="post-metadata">

**Author:** ![DanCouper](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dancouper/32/158608_2.png) [@DanCouper](https://forum.freecodecamp.org/u/DanCouper)\
**Post date:** [August 13, 2018, 1:54pm UTC](https://forum.freecodecamp.org/t/help-with-python3-setup-on-macos/215728/6 "2018-08-13T13:54:03Z")

</div>

Please make sure you understand what the OP is asking for before blindly hitting reply, thank you.

---

<div class="post-metadata">

**Author:** ![AdventureBear](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/adventurebear/32/74786_2.png) [@AdventureBear](https://forum.freecodecamp.org/u/AdventureBear)\
**Post date:** [August 14, 2018, 12:37pm UTC](https://forum.freecodecamp.org/t/help-with-python3-setup-on-macos/215728/7 "2018-08-14T12:37:52Z")

</div>

My question is about python 3, and proper setting of paths after installation and updating. Thanks.

---

<div class="post-metadata">

**Author:** ![Unstoppable](https://avatars.discourse-cdn.com/v4/letter/u/b77776/32.png) [@Unstoppable](https://forum.freecodecamp.org/u/Unstoppable)\
**Post date:** [August 17, 2018, 5:22pm UTC](https://forum.freecodecamp.org/t/help-with-python3-setup-on-macos/215728/8 "2018-08-17T17:22:14Z")

</div>

Sorry maybe i did not get your question right. Do you want to create an alias for python3 after installation so you can easily differentiate it from python2 originally on mac when you want to call it?

---

<div class="post-metadata">

**Author:** ![AdventureBear](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/adventurebear/32/74786_2.png) [@AdventureBear](https://forum.freecodecamp.org/u/AdventureBear)\
**Post date:** [August 18, 2018, 5:15am UTC](https://forum.freecodecamp.org/t/help-with-python3-setup-on-macos/215728/9 "2018-08-18T05:15:27Z")

</div>

THat was my original question, but now that I have read your article and practiced a few times, it seems like it doesn’t matter (if I use an alias) if i’m setting up a virtual environment.

Thank you for your help!

---

<div class="post-metadata">

**Author:** ![Unstoppable](https://avatars.discourse-cdn.com/v4/letter/u/b77776/32.png) [@Unstoppable](https://forum.freecodecamp.org/u/Unstoppable)\
**Post date:** [August 18, 2018, 6:13am UTC](https://forum.freecodecamp.org/t/help-with-python3-setup-on-macos/215728/10 "2018-08-18T06:13:53Z")

</div>

You are welcome. Glad i could help.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [February 17, 2021, 5:38pm UTC](https://forum.freecodecamp.org/t/help-with-python3-setup-on-macos/215728/11 "2021-02-17T17:38:18Z")

</div>

Closed on February 17, 2021, 5:38pm UTC


