alembic “failed to create process.” in Windows7

这一生的挚爱 提交于 2019-12-11 13:55:42

问题


I already installed python2.7, pip, env and alembic successfully,

I try to run command "alembic init elembic" in command prompt but it not success, it show the message "failed to create process.".

Anyone why and how to solve it?


回答1:


You are probably seeing this as a result of a pip bug where it fails to correctly quote the python install path if it includes any spaces.

You can work around it by either installing python to a path without any spaces or editing the first line of scripts generated by pip in the \Scripts directory. The generated first line looks something like:

#!c:\program files\python 2.7\python.exe

and needs to have quotes added around the path like this:

#!"c:\program files\python 2.7\python.exe"


来源:https://stackoverflow.com/questions/34057783/alembic-failed-to-create-process-in-windows7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!