Skip to content

Forum in maintenance, we will back soon 🙂

Notifications
Clear all

Python version

10 Posts
4 Users
1 Reactions
40 Views
(@emanuele-corradino-angiletti)
Posts: 8
Active Member Customer Registered
Topic starter
 

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?

 
Posted : 07/20/2023 6:52 am
Hasan Aboul Hasan
(@admin)
Posts: 1276
Member Admin
 

Hi friend, can you please share some screenshots of the errors you are getting?

did you try running a python script?

 
Posted : 07/20/2023 3:41 pm
(@emanuele-corradino-angiletti)
Posts: 8
Active Member Customer Registered
Topic starter
 

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. 

 
Posted : 07/24/2023 12:03 am
Hasan Aboul Hasan
(@admin)
Posts: 1276
Member Admin
 

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.

 
Posted : 07/24/2023 9:57 am
SSAdvisor
(@ssadvisor)
Posts: 1139
Noble Member
 

@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

 
Posted : 07/24/2023 7:03 pm
(@emanuele-corradino-angiletti)
Posts: 8
Active Member Customer Registered
Topic starter
 

@admin I did "pip install openai" and after "python main.py" Same thing, doesn't work


 
Posted : 07/25/2023 9:08 am
(@emanuele-corradino-angiletti)
Posts: 8
Active Member Customer Registered
Topic starter
 

@ssadvisor No I didn't install a virtual environment, I want python 3.11.4 as global.

 
Posted : 07/25/2023 9:09 am
Hasan Aboul Hasan
(@admin)
Posts: 1276
Member Admin
 

@emanuele-corradino-angiletti can you try with a virtual enviroment.

try this:

  1. Open a terminal in VS Code.

  2. 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.

  3. 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.

  4. When the virtual environment is activated, install the necessary Python packages using pip. and try again

 

 
Posted : 07/25/2023 1:14 pm
(@jacqueline-rogers)
Posts: 3
Active Member Customer
 

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

 
Posted : 07/27/2023 6:29 pm
Hasan Aboul Hasan
(@admin)
Posts: 1276
Member Admin
 

@jacqueline-rogers where is the screenshot?

 
Posted : 07/28/2023 9:06 am
Share:
[the_ad_group id="312"]