plummm / Alfred-Currency-Exchange

Most convinent currencies converting tool for alfred3
84 stars 9 forks source link

mac os的python更新到3之后就不能用了 #15

Closed dxvgef closed 1 year ago

dxvgef commented 2 years ago

我的mac os里现在只有python3,系统的python命令不能用了,但python3命令可用,我在alfred的run script里将python exchange.py $1命令改为了/usr/bin/python3 exchange.py $1,现在又报No module named 'urllib2'的错误,应该是不兼容python3吧?

plummm commented 2 years ago

试试pip3 install 所需要的库

dxvgef commented 2 years ago

试试pip3 install 所需要的库

pip3 install urllib2这个命令提示没有urllib2这个库,我在网上查到说python3已经弃用这个库了

dxvgef commented 2 years ago

我在mac os上安装了python2.7,现在出现新的错误了:

ERROR: Currency Exchange[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.7305FF14-C687-4E15-A2E6-208105F1AD60%3EFB5FDEF6-F3D6-447B-95FC-A25EA085D636)] Code 127: env: bash: No such file or directory
zackzeng00 commented 2 years ago

首次在官网下载python3.10 (未安装过2.x版本) 无法使用

plummm commented 2 years ago

首次在官网下载python3.10 (未安装过2.x版本) 无法使用

尝试将python路径加入PATH地址: https://www.educative.io/answers/how-to-add-python-to-the-path-variable-in-mac

zackzeng00 commented 2 years ago

把python的路径改为python3 因为用的alfred 4.6.6是不是不支持alfred4 只支持3?

plummm commented 1 year ago

最新版本解决的这些问题