wizyoung / googletranslate.popclipext

(Unofficial) A free and easy-to-use Google Translate PopClip Extension (macOS). 一个免费的谷歌翻译 PopClip 插件 (macOS)。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

使用conda的python报错。

guyujun opened this issue · comments

~/Desktop/googletranslate.popclipext-2.1.1/src » Traceback (most recent call last): kunkun@kunkundeMacBook-Pro
File "translate.py", line 8, in
import requests
File "/Users/kunkun/Desktop/googletranslate.popclipext-2.1.1/src/requests/init.py", line 84, in
from urllib3.contrib import pyopenssl
File "/Users/kunkun/Desktop/googletranslate.popclipext-2.1.1/src/urllib3/contrib/pyopenssl.py", line 46, in
import OpenSSL.SSL
File "/anaconda2/lib/python2.7/site-packages/OpenSSL/init.py", line 8, in
from OpenSSL import crypto, SSL
File "/anaconda2/lib/python2.7/site-packages/OpenSSL/crypto.py", line 12, in
from cryptography import x509
File "/anaconda2/lib/python2.7/site-packages/cryptography/x509/init.py", line 8, in
from cryptography.x509.base import (
File "/anaconda2/lib/python2.7/site-packages/cryptography/x509/base.py", line 16, in
from cryptography.x509.extensions import Extension, ExtensionType
File "/anaconda2/lib/python2.7/site-packages/cryptography/x509/extensions.py", line 13, in
from asn1crypto.keys import PublicKeyInfo
File "/anaconda2/lib/python2.7/site-packages/asn1crypto/keys.py", line 22, in
from ._elliptic_curve import (
File "/anaconda2/lib/python2.7/site-packages/asn1crypto/_elliptic_curve.py", line 51, in
from ._int import inverse_mod
File "/anaconda2/lib/python2.7/site-packages/asn1crypto/_int.py", line 52, in
if platform.python_implementation() == 'PyPy':
File "/anaconda2/lib/python2.7/platform.py", line 1499, in python_implementation
return _sys_version()[0]
File "/anaconda2/lib/python2.7/platform.py", line 1464, in _sys_version
repr(sys_version))
ValueError: failed to parse CPython sys.version: '2.7.10 (default, Aug 17 2018, 19:45:58) \n[GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.0.42)]'

你是怎么做到在桌面运行的?另外针对你的问题本身,可以手动安装requests库试试