如何在m上安装pync

2024-09-29 21:23:17 发布

您现在位置:Python中文网/ 问答频道 /正文

我想在mac上安装pync以显示通知。我试过了

$ pip install pync

git clone git://github.com/SeTeM/pync.git
cd pync
python setup.py install

sudo easy_install pync

错误显示为:

^{pr2}$

Tags: installpippygitgithubcomclonemac
2条回答

Python包索引中的pync包似乎无法正常工作。在

直接从pync github repo安装将解决此问题:

pip install git+https://github.com/SeTeM/pync.git

只是有同样的问题。 解压缩egg文件有助于解决此问题:

cd /Library/Python/2.7/site-packages
sudo unzip pync-1.4-py2.7.egg
sudo rm -r EGG-INFO pync-1.4-py2.7.egg

$ python
Python 2.7.6 (default, Nov 12 2013, 13:26:39) 
[GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from pync import Notifier
>>>

相关问题 更多 >

    热门问题