Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-bash: douban.fm: command not found #136

Open
sallyblockchain opened this issue Sep 15, 2016 · 9 comments
Open

-bash: douban.fm: command not found #136

sallyblockchain opened this issue Sep 15, 2016 · 9 comments

Comments

@sallyblockchain
Copy link

uninstall了之前的douban.fm然后重新sudo pip2 install douban.fm安装。
但是安装之后就说douban.fm: command not found。用的mac
这是为什么?之前没出现过这个问题。
而且只看到了.doubanfm.log 和.doubanfm_config,没有.douban_token.txt文件。

@taizilongxu
Copy link
Owner

检查一下 /usr/local/bin/douban.fm 是否存在?

@sallyblockchain
Copy link
Author

发现他装到/usr/local/lib/python2.7/site-packages里了....

@sallyblockchain
Copy link
Author

然后我sudo ln -s /usr/local/lib/python2.7/site-packages/doubanfm/ /usr/local/bin/douban.fm
弄了symbolic link现在 /usr/local/bin/douban.fm存在了,但还是报错-bash: douban.fm: command not found :(

@taizilongxu
Copy link
Owner

额, 要不试试手动安装呢
git clone 下
然后 sudo python setup.py install

@sallyblockchain
Copy link
Author

试了……还是不行:( 完 /usr/local/bin/douban.fm在 然后建个symbolic link就自动存在这个directory下然后还是同样错误。。

@taizilongxu
Copy link
Owner

这个应当是系统的问题了吧, macOS?

@sallyblockchain
Copy link
Author

hmm可能 上个OS突然开始出问题 一开始好好的 现在升级到Sierra了:( 完

@taizilongxu
Copy link
Owner

env看下系统环境没包含/usr/local/bin/douban.fm这个目录吗?

@sallyblockchain
Copy link
Author

sallyblockchain commented Sep 28, 2016

env嘛?并没有。。我也没在.bash_profile或者.bashrc加这个东西。。btw我可以在python里面import doubanfm。
>>> import doubanfm
>>> doubanfm
<module 'doubanfm' from '/usr/local/lib/python2.7/site-packages/douban.fm-0.4.15-py2.7.egg/doubanfm/__init__.pyc'>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants