Problem running Virtualenv on Mac OS X

前端 未结 7 1798
野趣味
野趣味 2021-01-17 10:29

I\'m using virtualenv-1.4.5 on Mac OS X 10.6.2 (Xcode is installed) and Python 2.6. Here\'s what I get when I attempt to run a virtualenv...

 Mac-Pro:pylonsd         


        
7条回答
  •  迷失自我
    2021-01-17 10:47

    I had the same error messages trying to run virtualenv on a up-to-date Max OSX Lion installation with XCode installed.

    However: Mark hints on Mar 1 2010:

    Well code says you have not installed Xcode but you say you have. What does which install_name_tool at the command line say? It should be install_name_tool -> install_name_tool == /usr/bin/install_name_tool

    I had the same problem. I had installed the latest Xcode in Lion (10.7.2).

     $ locate install_name_tool
     /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/install_name_tool
     /Developer/usr/bin/install_name_tool
     /Developer/usr/share/man/man1/install_name_tool.1
    

    I made a simlink from the /Developer/usr/bin to the /usr/bin with

     $ sudo ln -s /Developer/usr/bin/install_name_tool /usr/bin/install_name_tool
    

    Entering the 'which' command yields:

     $ which install_name_tool
     /usr/bin/install_name_tool
    

    After that I did the virtualenv magic

    $ virtualenv -p python2.6 myvirtenv
    Running virtualenv with interpreter /opt/local/bin/python2.6
    New python executable in myvirtenv/bin/python
    Installing setuptools............................done.
    Installing pip...............done.
    

提交回复
热议问题