# Python beginner course

**URL:** <https://forum.codewithmosh.com/t/python-beginner-course/8778>\
**Category:** Python\
**Created:** [November 27, 2021, 2:10am UTC](https://forum.codewithmosh.com/t/python-beginner-course/8778 "2021-11-27T02:10:41Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kuruma3057](https://avatars.discourse-cdn.com/v4/letter/k/e47774/32.png) [@Kuruma3057](https://forum.codewithmosh.com/u/Kuruma3057)\
**Post date:** [November 27, 2021, 2:10am UTC](https://forum.codewithmosh.com/t/python-beginner-course/8778/1 "2021-11-27T02:10:41Z")

</div>

![Screenshot_20211126-175939_Chrome](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/5/51fbba5a855edaac0438de484ae2370e2ac883cf.jpeg)

How do i add “code-runner.executermap”

Cant seem to find the settings like in image attached

---

<div class="post-metadata">

**Author:** ![Tolonso](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@Tolonso](https://forum.codewithmosh.com/u/Tolonso)\
**Post date:** [November 29, 2021, 5:35am UTC](https://forum.codewithmosh.com/t/python-beginner-course/8778/2 "2021-11-29T05:35:54Z")

</div>

I’m Stuck exactly in that video. I can’t find a way to change the python-u setting to Python3 as Mosh suggests we do in his course.

---

<div class="post-metadata">

**Author:** ![jenjac](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jenjac](https://forum.codewithmosh.com/u/jenjac)\
**Post date:** [November 29, 2021, 8:26am UTC](https://forum.codewithmosh.com/t/python-beginner-course/8778/3 "2021-11-29T08:26:57Z")

</div>

I _think_ I got this to work. After you click on Code \> Preferences \> Settings, enter “code-runner.executorMap” in the Search window. Click on the edit-settings.json under the first option. Add a comma at the end of the last line showing and type “code-runner.executorMap”: on the next line. Then all of the various choices showed up. Change the “python -u” to “python3” and save your changes.

---

<div class="post-metadata">

**Author:** ![Kuruma3057](https://avatars.discourse-cdn.com/v4/letter/k/e47774/32.png) [@Kuruma3057](https://forum.codewithmosh.com/u/Kuruma3057)\
**Post date:** [November 29, 2021, 2:00pm UTC](https://forum.codewithmosh.com/t/python-beginner-course/8778/4 "2021-11-29T14:00:59Z")

</div>

Yes thats what i did as well and it worked!

---

<div class="post-metadata">

**Author:** ![Sagar](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@Sagar](https://forum.codewithmosh.com/u/Sagar)\
**Post date:** [November 29, 2021, 11:19pm UTC](https://forum.codewithmosh.com/t/python-beginner-course/8778/5 "2021-11-29T23:19:19Z")

</div>

Hey guys I’m having issues using VScode on my operating device, although from Mosh’s previous tutorial on YouTube I have pycharm and at the moment seem more comfortable using that. Is it still fine to use pycharm for this course?

---

<div class="post-metadata">

**Author:** ![Paul](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Paul](https://forum.codewithmosh.com/u/Paul)\
**Post date:** [November 30, 2021, 5:27am UTC](https://forum.codewithmosh.com/t/python-beginner-course/8778/6 "2021-11-30T05:27:40Z")

</div>

PyCharm is perfect. Only thing is that you will have to figure out PyCharms version of the shortcut keys that Mosh uses in VS Code but that is not really that important.

---

<div class="post-metadata">

**Author:** ![Sagar](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@Sagar](https://forum.codewithmosh.com/u/Sagar)\
**Post date:** [November 30, 2021, 5:43am UTC](https://forum.codewithmosh.com/t/python-beginner-course/8778/7 "2021-11-30T05:43:02Z")

</div>

Cheers mate, I’ve been a lot of issues with VScode but this clears up everything

---

<div class="post-metadata">

**Author:** ![Paul](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Paul](https://forum.codewithmosh.com/u/Paul)\
**Post date:** [November 30, 2021, 6:02am UTC](https://forum.codewithmosh.com/t/python-beginner-course/8778/8 "2021-11-30T06:02:11Z")

</div>

I only use PyCharm. 😉

---

<div class="post-metadata">

**Author:** ![DeadWorkerBee](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@DeadWorkerBee](https://forum.codewithmosh.com/u/DeadWorkerBee)\
**Post date:** [December 3, 2021, 5:17pm UTC](https://forum.codewithmosh.com/t/python-beginner-course/8778/9 "2021-12-03T17:17:39Z")

</div>

In lesson 2 of the python package index the app’s first line is:

import requests

but this results in an error: Module not found.

What to do?

I ran python -m pip show requests

and it returned that I have version 2.26.0.

SO, why can’t I import requests?

And when I run pip3 list I get:

Package Version

* * *

certifi 2021.10.8  
charset-normalizer 2.0.8  
idna 3.3  
pip 21.3.1  
requests 2.26.0  
setuptools 57.4.0  
urllib3 1.26.7  
wheel 0.37.0

BUT I think something else is amiss. In the lesson, after running env -m venv env, there is no bin folder created.

Thanks.

---

<div class="post-metadata">

**Author:** ![Paul](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Paul](https://forum.codewithmosh.com/u/Paul)\
**Post date:** [December 4, 2021, 11:45am UTC](https://forum.codewithmosh.com/t/python-beginner-course/8778/10 "2021-12-04T11:45:41Z")

</div>

One reason that this may happen is that you are running python in a virtual environment but that the packages are installed elsewhere. Make sure you switch to your virtual environment. Not sure if you are on Windows or Mac? On windows from within your project directory do the following (assuming your virtual environment is in `.env`.) run the following command:

`.\.env\Scripts\activate`.

then check again if your packages are installed.

---

<div class="post-metadata">

**Author:** ![DeadWorkerBee](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@DeadWorkerBee](https://forum.codewithmosh.com/u/DeadWorkerBee)\
**Post date:** [December 4, 2021, 3:14pm UTC](https://forum.codewithmosh.com/t/python-beginner-course/8778/11 "2021-12-04T15:14:57Z")

</div>

I’m using Visual Studio Code on Win10. The code which didn’t work properly (import responses) was in the Terminal. I’m not running a virtual environment. Should I?
