Python:无法打开文件'setup.py':[Errno 2]没有这样的文件或目录。目录更改不会删除错误 [英] Python: can't open file 'setup.py': [Errno 2] No such file or directory. Directory Change does not remove error
问题描述
我正在尝试将pymysql安装到Windows 8计算机上,并且在安装python 3.3时遇到了麻烦。我得到了mython-mysql驱动程序,可以在2.7上正常工作,但是到目前为止,这给了我一些问题
我被拒绝使用
I am trying to install pymysql to a windows 8 machine and have been having trouble with the installation for python 3.3 I got the mython-mysql driver to work fine for 2.7 but this is giving me some issues so far I have been denied access which I fixed with
runas / savecred / user:Luke python setup.py install
luke是管理员个人资料,应该具有访问权限,但这会在第二个窗口上提示以下错误:
runas /savecred /user:Luke "python setup.py install"
luke is an administrator profile and should have access but this prompts on a second window the following error:
Python:可以t打开文件 setup.py:[Errno 2]没有这样的文件或目录。
要解决此问题,我在安装命令前添加了:
to fix this I prefaced the install command with:
cd C:\Python33\PyMySQL\py3k\
不幸的是,这不能解决问题,仍然收到相同的错误消息。
unfortunately this did not fix the problem and still receiving the same error message.
我有已检查 Python:缺少setup.py:没有此类文件或目录,但它只是说要更改我尝试过的目录
i have checked Python: setup.py missing: No such file or directory but it only said to change the directory which I have tried
有人对为什么会发生这种情况有任何想法吗?文件在那里。为什么它不能读取或找到它?
Does anyone have any idea as to why this might be happening? The file is there. why can't it read or find it?
推荐答案
请按照以下步骤操作以纠正此问题:
Follow these steps in order to rectify this problem:
- 下载tweepy并将其解压缩到桌面中:下载从此
链接 - 重命名为tweepy
- 打开命令提示符并键入 cd
desktop,然后 cd tweepy - 键入 python setup.py install
- Download tweepy and unzip it in Desktop: Download from this link
- Rename it tweepy
- Open command prompt and type "cd desktop" then "cd tweepy"
- Type "python setup.py install"
这篇关于Python:无法打开文件'setup.py':[Errno 2]没有这样的文件或目录。目录更改不会删除错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!