Python中,pinax,django的,窗户AttributeError的: '模块&#

2019-07-31 08:40发布

我安装pinax在Windows

试图创建一个项目后,我得到这个错误:

(mysite) C:\virtualenvs\mysite>pinax-admin setup_project mypinax
Created project mypinax
Installing 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", lin
e 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 handle
self.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'

我将感谢任何帮助。 顺便说一句,我使用python 2.7.3和最新的稳定版本pinax

Answer 1:

你有点子的新版本,功能pip.call_subprocess已经移动到pip.util.call_subprocess 。 请参阅: https://github.com/pypa/pip/pull/464

刚刚替换字符串

C:\virtualenvs\mysite\lib\site-packages\pinax\core\management\commands\setup_project.py

执行pinax管理员之前



文章来源: Python, pinax, django, windows AttributeError: 'module' object has no attribute 'call_subprocess'