Jag tar en kurs och där finns följande instruktioner:
Man ska då skapa en mapp som heter pycode och i den installera med hjälp av pip. Då måste ju pip kännas igen, så hur gör man då?
Python Version
First, you must have the 3.11 version of Python installed:
https://www.python.org/downloads/
Pipenv Installation and Configuration
1. If you have not already done so, create a pycode directory somewhere on your development machine.
2. In your terminal run pip install pipenv or depending on your environment, pip3 install pipenv
3. Create a file in your pycode project directory called Pipfile
4. Copy paste the following code into that new Pipfile (or drag and drop the file that is attached to this lecture into your pycode project directory):
5. Inside your pycode project directory, run the following command to install your dependencies from the Pipfile:
pipenv install
6. Run the following command to create and enter a new environment:
pipenv shell
After doing this your terminal will now be running commands in this new environment managed by Pipenv.
Once inside this shell, you can run Python commands just as shown in the lecture videos.
eg:
python main.py
7. If you make any changes to your environment variables or keys, you may find that you need to exit the shell and re-enter using the pipenv shell command.







