Forum in maintenance, we will back soon 🙂
Python version
I'm a Mac user and my python version is 3.8.8. I'm not able to use 3.11.4. I obviously download the latest version and deleted the previous but still in the terminal shows 3.8.8. My path is in anaconda, so I deleted anaconda and try to install it again but I cannot even install it because there is an error that the path exist already. I asked chatGpt but I can use 3.11.4 just in the virtual environment, but I want it global. Can someone help me?
Hi friend, can you please share some screenshots of the errors you are getting?
did you try running a python script?
Thanks Hasan for your reply.
I cannot run script on VS Code because cannot find module openai. I did already "pip install openai". In terminal as I wrote before there is only 3.8.8. In my application there is only python 3.11.4 and I deleted anaconda. I tried to install it again (anaconda) hoping in a new version of python already in but I cannot because at the end of the installation there is a warning telling me that the path still exist.
Hope you con somehow help me, so I can play around with all the knowledge I got from your course.
Â
 Â
Â
in the viscose terminal but I cannot run the script anyway.Â
Hi Friend, python installation is fine.
your problem now in openai module not being recognized.
close all terminals, and try installing openai again.
then run the file like this:
python filename.py
Â
and show me the results.
@emanuele-corradino-angiletti, also, did you install openai in a virtual environment? If so, are you running the program with the virtual environment activated?
NOTE: Start VS Code --after-- you activate the virtual environment so that it uses the correct Python environment.
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
@ssadvisor No I didn't install a virtual environment, I want python 3.11.4 as global.
@emanuele-corradino-angiletti can you try with a virtual enviroment.
try this:
-
Open a terminal in VS Code.
-
In the terminal, type the following command to create a new virtual environment inside your project folder:
python -m venv .venv
Here,
.venv
is the name of your virtual environment. You can replace it with any name you prefer. -
Activate the virtual environment by running the following command in the terminal:
source .venv/bin/activate
This command will change your prompt to something like
(.venv) Your-Computer:your_project UserName$
, indicating that you're now working inside the.venv
virtual environment. -
When the virtual environment is activated, install the necessary Python packages using pip. and try again
Â
Hello,
I downloaded the latest version of Python for Windows (10) however I can't run any code. I reinstalled VS studio but no results. I've attached a screenshot