只需替换其中的字符串 C:\virtualenvs\mysite\lib\site-packages\pinax\core\management\commands\setup_project.py 在执行pinax-admin之前I installed pinax on windowsafter trying to create a project I got this error:(mysite) C:\virtualenvs\mysite>pinax-admin setup_project mypinaxCreated project mypinaxInstalling project requirements...Traceback (most recent call last): File "c:\virtualenvs\mysite\Scripts\pinax-admin-script.py", line 8, in <module> load_entry_point('Pinax==0.9a2', 'console_scripts', 'pinax-admin')() File "c:\virtualenvs\mysite\lib\site-packages\pinax\core\management\__init__.py", line 105, in execute_from_command_line runner.execute() File "c:\virtualenvs\mysite\lib\site-packages\pinax\core\management\__init__.py", line 94, in execute self.loader.load(command).run_from_argv(argv) File "c:\virtualenvs\mysite\lib\site-packages\pinax\core\management\base.py", line 45, in run_from_argv self.handle(*args, **options.__dict__) File "c:\virtualenvs\mysite\lib\site-packages\pinax\core\management\commands\setup_project.py", line 66, in handleself.setup_project(args[0], options["base"], options) File "c:\virtualenvs\mysite\lib\site-packages\pinax\core\management\commands\setup_project.py", line 134, in setup_project installer.install_reqs(not options["allow_no_virtualenv"]) File "c:\virtualenvs\mysite\lib\site-packages\pinax\core\management\commands\setup_project.py", line 207, in install_reqs pip.call_subprocess([AttributeError: 'module' object has no attribute 'call_subprocess'I would be thankful for any help.By the way I am using python 2.7.3 and the latest stable pinax version 解决方案 You have new version of pip, the function pip.call_subprocess has been moved to pip.util.call_subprocess. See: https://github.com/pypa/pip/pull/464Just replace the string inC:\virtualenvs\mysite\lib\site-packages\pinax\core\management\commands\setup_project.pyBefore executing the pinax-admin 这篇关于Python,Pinax,Django,Windows AttributeError:“模块"对象没有属性"call_subprocess"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-11 05:54