1

알림을 표시하기 위해 Mac에 pync를 설치하고 싶습니다.Mac에서 pync 설치하는 방법

Last login: Thu Nov 21 12:20:51 on ttys000 
fiss-Mac:~ fis$ python 
Python 2.7.2 (default, Oct 11 2012, 20:14:37) 
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin 
Type "help", "copyright", "credits" or "license" for more information. 
>>> from pync import Notifier 
Traceback (most recent call last): 
    File "<stdin>", line 1, in <module> 
    File "build/bdist.macosx-10.8-intel/egg/pync/__init__.py", line 3, in <module> 
    File "build/bdist.macosx-10.8-intel/egg/pync/TerminalNotifier.py", line 99, in <module> 
    File "build/bdist.macosx-10.8-intel/egg/pync/TerminalNotifier.py", line 27, in __init__ 
Exception: pync was not properly installed. Head over to https://github.com/SeTeM/pync/ and file a bug. 
>>> 
+0

'sudo python'을 사용하여 python을 루트로 실행 해보십시오. O/S에 접속하려면 더 많은 접근이 필요합니다. – VooDooNOFX

답변

0

파이썬 패키지 지수 pync의 패키지가 제대로 작동하지 않는 것 같습니다 : 나는

$ pip install pync 

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

sudo easy_install pync 

이 같은 오류를보기로했습니다. 이 문제를 해결합니다 pync github repo에서 직접 설치

:

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

0

그냥 같은 문제가 있었다. 달걀 파일의 압축을 풀면 문제를 해결하는 데 도움이되었습니다.

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 
>>>