简体   繁体   中英

Running Enthought Canopy GUI in a virtual environment

This seems like a simple question but I've looked around and cannot find a simple answer.

I've set up a virtual environment in my project folder using canopy_cli venv <myvenv> , and now I can run plain python in that environment. How can I run the Canopy GUI using this virtual environment instead?

Your launch script will have to activate that virtual environment: $ source myenv/bin/activate $ python my_app.py

or the equivalent in Windows: C:> /Scripts/activate.bat C:> python my_app.py

See here for details.

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