Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4932 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 6 25
1968
1
thg 6 25
810
3
thg 3 25
3317
0
thg 2 25
890
1
thg 11 24
1703