V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
jerichowon
V2EX  ›  MacBook Air

问个在OS X中使用PyCharm的问题。

  •  
  •   jerichowon · 2013-01-01 22:48:59 +08:00 · 7443 次点击
    这是一个创建于 4134 天前的主题,其中的信息可能已经有所发展或是发生改变。
    当PyCharm在OS X安装成功以后,初次设置interpreter时,有一个创建virtual environment的选项,可以我在创建virtual environment时总是提示创建失败。

    请问这是为什么?有人碰到过么?

    OS X 版本为10.8
    PyCharm版本为2.6
    第 1 条附言  ·  2013-01-02 17:36:54 +08:00
    彻底郁闷了,在interpreter里面安装pip也失败,这是个什么情况啊?
    第 2 条附言  ·  2013-01-02 17:51:52 +08:00
    os版本:10.8.2
    pycharm版本:2.6.3

    已经重新安装过了,还是不行。

    郁闷至极啊!!!!

    希望能够有人告诉我这到底是怎么了?银币感谢。
    8 条回复    1970-01-01 08:00:00 +08:00
    chlx
        1
    chlx  
       2013-01-01 23:11:19 +08:00
    版本一致,没有遇到这个问题.LZ说详细点?
    jerichowon
        2
    jerichowon  
    OP
       2013-01-02 12:49:34 +08:00
    @chlx 这个是我的错误信息:

    The following command was executed:

    virtualenv.py --never-download --distribute /Users/admin/untitled1

    The error output of the command:

    Traceback (most recent call last):
    File "/Applications/PyCharm.app/helpers/virtualenv.py", line 2429, in <module>
    main()
    File "/Applications/PyCharm.app/helpers/virtualenv.py", line 942, in main
    never_download=options.never_download)
    File "/Applications/PyCharm.app/helpers/virtualenv.py", line 1049, in create_environment
    search_dirs=search_dirs, never_download=never_download)
    File "/Applications/PyCharm.app/helpers/virtualenv.py", line 603, in install_distribute
    search_dirs=search_dirs, never_download=never_download)
    File "/Applications/PyCharm.app/helpers/virtualenv.py", line 570, in _install_req
    cwd=cwd)
    File "/Applications/PyCharm.app/helpers/virtualenv.py", line 1020, in call_subprocess
    % (cmd_desc, proc.returncode))
    OSError: Command /Users/admin/untitled1/bin/python -c "#!python
    \"\"\"Bootstra... main(sys.argv[1:])
    " --always-copy -U distribute failed with error code 1

    New python executable in /Users/admin/untitled1/bin/python
    Installing distribute........
    Complete output from command /Users/admin/untitled1/bin/python -c "#!python
    \"\"\"Bootstra... main(sys.argv[1:])
    " --always-copy -U distribute:
    Traceback (most recent call last):
    File "<string>", line 23, in <module>
    File "/Users/admin/untitled1/lib/python2.7/distutils/__init__.py", line 16, in <module>
    exec(open(os.path.join(distutils_path, '__init__.py')).read())
    IOError: [Errno 2] No such file or directory: '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/__init__.py'
    ----------------------------------------
    ...Installing distribute...done.
    jerichowon
        3
    jerichowon  
    OP
       2013-01-02 12:54:05 +08:00
    接图再这里:
    davidx
        4
    davidx  
       2013-01-06 15:31:25 +08:00
    从目前能看到的信息上看, 貌似是少一个__init__.py
    hussion
        5
    hussion  
       2013-01-06 15:44:55 +08:00
    没有碰到...
    jerichowon
        6
    jerichowon  
    OP
       2013-01-06 21:30:10 +08:00
    不是吧,这种事情只有我碰到?
    ry_wang
        7
    ry_wang  
       2013-02-16 11:44:20 +08:00
    @jerichowon 没装xcode的command tools吧.
    lowrain
        8
    lowrain  
       2013-08-10 12:45:05 +08:00
    @jerichowon 没装xcode的command tools吧. +1
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   874 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 20:13 · PVG 04:13 · LAX 13:13 · JFK 16:13
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.