简体   繁体   English

Python 3.4.2和pip权限问题

[英]Python 3.4.2 AND pip Permission Issues

I've been struggling with an issue with Python and pip installs (python version 3.4.2, same with x86 or x64 MSIs, Windows 7 x64). 我一直在努力解决Python和pip安装问题(python 3.4.2版本,与x86或x64 MSI相同,Windows 7 x64)。 I'm using the CPython installer available from the Python.org website. 我正在使用Python.org网站上的CPython安装程序。

When I install, I get the UAC prompt, which I approve, and it installs fine to D:\\opt\\python34 (along with pip, as added in 3.4.2 installations by default). 当我安装时,我得到了我认可的UAC提示,它可以很好地安装到D:\\opt\\python34 (以及pip,默认情况下在3.4.2安装中添加)。 Then, as standard procedure, I add the install path and Scripts subfolder to the user path variable. 然后,作为标准过程,我将安装路径和脚本子文件夹添加到用户路径变量。 Now, the issues are as follows: 现在,问题如下:

  1. Whenever I run python setup.py install inside any package directory, the prompt hangs at writing ... to top_level.txt or writing to dependency_links.txt or etc. (Same issue happens if I create a virtual environment using python -m venv, activate it, and do python setup.py install). 每当我在任何软件包目录中运行python setup.py install ,提示都将挂起,提示将writing ... to top_level.txtwriting to dependency_links.txt等。(如果我使用python -m venv创建虚拟环境,则会发生相同的问题,激活它,然后执行python setup.py安装)。 Setup.py never succeeds. Setup.py永远不会成功。 Pip install also hangs infinitely after giving a warning "manifest_maker: Standard file '-c' not found." 发出警告“ manifest_maker:找不到标准文件'-c'”后,pip安装也会无限期挂起。

  2. If I remove setuptools, and just use distribute, then "python setup.py install" works. 如果我删除setuptools,而只使用分发,则“ python setup.py install”有效。

Kindly assist with ideas/solutions. 请协助提供想法/解决方案。

After many days of trying a workaround, I finally got down to debugging the setup.py script and setuptools and distutils. 经过数天的尝试,我终于开始调试setup.py脚本以及setuptools和distutils。 Figured out the problem was a missing "svn.exe" on my workstation, which caused the "svn_finder" function in setuptools core to hang up. 找出问题是我的工作站上缺少“ svn.exe”,这导致setuptools核心中的“ svn_finder”功能挂断。

Can someone point me in the right direction as to how I can make the right team aware of the "bug"? 有人可以向我指出正确的方向,告诉我如何使合适的团队知道“错误”吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM