是我还是Rails和Django难以在Windows上安装? [英] Is it Me or Are Rails and Django Difficult to Install on Windows?

查看:116
本文介绍了是我还是Rails和Django难以在Windows上安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让这些框架在Windows Vista上工作了好几天,但没有效果。

I tried getting these frameworks working on Windows Vista for a couple of days but to no avail.

每一次我以为我让他们工作,我会得到一些涉及PostgreSQL或MySQL安装程序的随机错误,或者路径被拧坏或其他一些命令行错误不被认定为内部或外部的指令(或某事)。有人告诉我,这些框架在Ubuntu上运行起来容易得多,但我真的不想像Windows这样的一切。在Windows上尝试运行这些常见问题?

Every single time I thought I had them working I would get some random error involving the PostgreSQL or MySQL setup, or the paths were screwed up or some other command line error "not recognized as an internal or external command" (or something). Someone told me that these frameworks are a lot easier to get running on Ubuntu but I really don't want to make that switch as everything I have is on Windows. Are these common problems when trying to get running on Windows?

我想我只是坚持使用C#和.NET,因为一切似乎都很好地工作,没有一个这个安装二十不同组件的东西,看看他们是否一起工作。
即时Django 建议使用?

I think I'll just stick with C# and .NET as everything seems to work pretty nicely together with none of this "install-twenty-different-components" stuff and see if they work together. Is Instant Django advisable to use?

推荐答案

是的。 RoR和Django很难在Vista上安装。

Yes. RoR and Django were difficult to install on Vista.

我没有提供详细信息,因此我深表歉意,但这里是我的问题的一般描述,以及我如何克服它。也许这里有一些东西。

I apologize for not having specifics, but here's a general recount of my problem and how I overcame it. Maybe there is something here for you.

对于Python:您的Vista安装可能有一个预先存在的干扰路径的Python变量。例如,在我的HP电脑上,HP出厂时已经有Python。 HP Python路径指向了HP Python,而不是我为Django下载的最新版本。检查控制面板 - >系统 - >高级系统设置 - >高级选项卡 - >环境变量 - >系统变量,然后检查路径是什么。我把这个路径改成了我的新安装的Python,然后一切正常。

For Python: Your Vista install may have a pre-existing path variable for Python that interferes. For example, on my HP computer, HP has Python from the factory. The HP Python path pointed to the HP Python, not the latest that I download for Django. Check Control Panel-->System-->Advanced System Settings-->Advanced Tab-->Environment Variables-->System Variables, then check what the "PATH" is. I changed that path to my fresh install of Python, and then everything worked.

对于RoR:你使用一键安装程序吗?我忘记了具体细节,但是我知道右键单击一键安装程序文件,并以以管理员身份运行是其中的一个技巧。

For RoR: Are you using the one click installer? I forgot the specifics, but I know right-clicking the 1-Click Installer file and "Run as Administrator" was one of the tricks.

对于RoR和Django:考虑目前不使用MySQL和Postgres。使用Ruby / Python安装程序附带的默认SQLite应该让您在游戏的这个阶段感到高兴。 SQLite对于修补是足够好的,并不会像完整的堆栈数据库那样使用尽可能多的资源。

For RoR and Django: Consider NOT using MySQL and Postgres, at this time. Using the default SQLite that comes with the Ruby/Python installers should keep you happy at this stage of the game. SQLite is good enough for tinkering and doesn't use as many resources as a full stack database.

祝你好运!

这篇关于是我还是Rails和Django难以在Windows上安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆