简体   繁体   中英

Installing gmsh module in virtual enviroment python

I am using a virtual environment for my python code. I installed the gmsh module inside the folder project\venv\lib\site-packages, and apparently, it is done properly since when I create the "requirement.txt" it appears within the required modules. However, when I open the project folder in Visual Studio Code, and I try to import the gmsh module, it is not found.

Can you give me some hints??

-- Edit installation vs code

As this answer suggest, you need to set your Python interpreter in VS Code.

You should select project\venv\bin\python as your interpreter

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM