我刚刚开始了一个新的Django项目,当我尝试制作移民时,我得到一个错误,说我必须安装Pillow,而我已经安装了Pillow。ERRORS:
shop.ProductImages.product_img: (fields.E210) Cannot use ImageField because Pillow is not installed更新: 当我尝试在我的virtualenv之外从PIL导入Image时,一切正常,但当我在virtualenv中尝试时,我得到了这样
line 10, in <module> File "C:\Python27\lib\site-packages\djangoline 385, in execute_from_command_line File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line 345, in execute
我想在EC2机器上Python3的虚拟环境中运行的脚本中使用pandas。我一创建virtualenv就安装了pandas,但是脚本抛给我一个典型的错误: pandas不存在。无论如何,为了再次重新安装,我执行以下命令: cd ga_venv #name of my virtualenvpip install pandas 然后,我得到了安装完成后,我制作了pip freeze,但pandas没有出现。然后,我尝试卸载它,它显示为WAR