Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4942 Visualizzazioni

I want to ask you if I want to run Odoo locally with python 3.8+ instead what comes with the installer which is 3.7

My issue is that when i make PyCharm use python 3.8 all the requirements do not get installed as python 3.7. when i go into installing each one, i get a lot of errors.

What am i doing wrong? should i not use the installer files? is there a script that i can use?

is there a different more optimal way of doing this?


Ask me anything and I will answer it asap with a screen shot or whatever you want.

Avatar
Abbandona
Risposta migliore

Hello Mohamad Nassar,

It is recommended to use a virtual environment when working with Python projects, to avoid conflicts with different versions of packages and Python itself. Here are the steps you can follow to create a virtual environment and install the required packages for your Odoo project:

1. Open a terminal and navigate to the root directory of your Odoo project.
2. Create a virtual environment using Python 3.8: python3.8 -m venv env
3. Activate the virtual environment: source env/bin/activate
4. Upgrade pip: pip install --upgrade pip
5. Install the required packages for your Odoo project: pip install -r requirements.txt

By using a virtual environment, make sure that the required packages are installed for the correct version of Python.

If you continue to encounter errors during installation, you may need to review the contents of your requirements.txt file and ensure that all dependencies are listed correctly. You may also need to check for any system dependencies that are required for specific packages to install correctly..

Hope it will be helpful to you.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
4
giu 25
1979
1
giu 25
816
3
mar 25
3320
0
feb 25
891
1
nov 24
1711