最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

virtualenv - Two different python files to run an app on pythonanywhere how do i use the same virtual environment for both the .

programmeradmin0浏览0评论

I have a Website hosted on pythonanywhere using main.py. I have another xxx.py that will execute an action. both the main.py and xxx.py are inside the same project folder. The main.py is definitely using the virtual environment since it works while the xxx.py when run says the modules are not installed. How do I get the xxx.py to use the same virtual environment.

  1. I created a new virtual environment and updated the web app with the new virtual environment.
  2. I tried to update the WSGI configuration file since it has only the path for main.py in it when I try to add "from xxx import app as xxx_app" the web app stops working completely.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论