且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在python脚本中使用virtualenv

更新时间:2023-12-05 21:45:04

您是否已将matplotlib安装到venv中?

Did you install matplotlib into your venv?

venv/bin/pip install numpy
venv/bin/pip install matplotlib

除此之外,没有什么错

另一方面,如果该位置确实在您的http根目录(或更糟的是CGI目录)中,则可能需要重新考虑venv的位置

On a side note, you may want to reconsider the location of your venv, if indeed the location is inside your http root, or worse, a CGI directory.