Installed Nose but cannot use on command line

后端 未结 8 1308
南旧
南旧 2020-12-29 06:40

I installed Nose on a Mac OSX 10.10.5 with Python2.7.9 using easy_install. The installation appeared to be successful:

Collecting nose
  Downlo         


        
相关标签:
8条回答
  • 2020-12-29 07:29

    On UNIX-like systems like OS X, the script should be in /usr/local/bin. Make sure that directory is in the PATH environment variable in the shell that you use.

    If not, you can also locate it using find, e.g:

    find / -type f -name 'nosetests*' -perm +111 -print -quit
    

    This means; search for a file whose name starts with nosetests, which has execute permissions set. Print the path name and stop.

    0 讨论(0)
  • 2020-12-29 07:29

    There are lots of error occurred when using pip install packages on Mac OS. So I recommend you install nose using easy_install.

    $ pip uninstall nose

    $ sudo easy_install nose

    Then you can try nosetests now :)

    0 讨论(0)
提交回复
热议问题