简体   繁体   中英

Additional python library not working on macos

I'm using MacOS 10.14.6, and python 3.7.4

My personal python code is working well. I've installed additional library using pip:

pip install ccxt

Then below code works well on windows.

import ccxt
bitmex = ccxt.bitmex()
print(bitmex.fetch_ticker('BTC/USD'))

But on MacOS, error occurred. Who can help me?

I've solved this problem for 3 days. At mac, must install python3 for ccxt.

ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)" brew install python3 pip3 install ccxt

After above command run, error fixed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM