如何在 jupyter notebook 里安装 binance 模块?有没有会 Python 的大神来指点下? - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
flyouting
V2EX    Python

如何在 jupyter notebook 里安装 binance 模块?有没有会 Python 的大神来指点下?

  •  
  •   flyouting 213 天前 1786 次点击
    这是一个创建于 213 天前的主题,其中的信息可能已经有所发展或是发生改变。

    在 jupyter notebook 里输入!pip install python-binance 然后运行,它就提示下面这堆。问了 chatgpt 也没用。有没有会 python 的大神来指点下? Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: python-binance in c:\users\mazzy\appdata\roaming\python\python312\site-packages (1.0.28) Requirement already satisfied: requests in c:\programdata\anaconda3\lib\site-packages (from python-binance) (2.32.3) Requirement already satisfied: six in c:\programdata\anaconda3\lib\site-packages (from python-binance) (1.16.0) Requirement already satisfied: dateparser in c:\users\mazzy\appdata\roaming\python\python312\site-packages (from python-binance) (1.2.1) Requirement already satisfied: aiohttp in c:\programdata\anaconda3\lib\site-packages (from python-binance) (3.10.5) Requirement already satisfied: websockets in c:\users\mazzy\appdata\roaming\python\python312\site-packages (from python-binance) (15.0.1) Requirement already satisfied: pycryptodome in c:\users\mazzy\appdata\roaming\python\python312\site-packages (from python-binance) (3.21.0) Requirement already satisfied: aiohappyeyeballs>=2.3.0 in c:\programdata\anaconda3\lib\site-packages (from aiohttp->python-binance) (2.4.0) Requirement already satisfied: aiosignal>=1.1.2 in c:\programdata\anaconda3\lib\site-packages (from aiohttp->python-binance) (1.2.0) Requirement already satisfied: attrs>=17.3.0 in c:\programdata\anaconda3\lib\site-packages (from aiohttp->python-binance) (23.1.0) Requirement already satisfied: frozenlist>=1.1.1 in c:\programdata\anaconda3\lib\site-packages (from aiohttp->python-binance) (1.4.0) Requirement already satisfied: multidict<7.0,>=4.5 in c:\programdata\anaconda3\lib\site-packages (from aiohttp->python-binance) (6.0.4) Requirement already satisfied: yarl<2.0,>=1.0 in c:\programdata\anaconda3\lib\site-packages (from aiohttp->python-binance) (1.11.0) Requirement already satisfied: python-dateutil>=2.7.0 in c:\programdata\anaconda3\lib\site-packages (from dateparser->python-binance) (2.9.0.post0) Requirement already satisfied: pytz>=2024.2 in c:\users\mazzy\appdata\roaming\python\python312\site-packages (from dateparser->python-binance) (2025.1) Requirement already satisfied: regex!=2019.02.19,!=2021.8.27,>=2015.06.24 in c:\programdata\anaconda3\lib\site-packages (from dateparser->python-binance) (2024.9.11) Requirement already satisfied: tzlocal>=0.2 in c:\users\mazzy\appdata\roaming\python\python312\site-packages (from dateparser->python-binance) (5.3.1) Requirement already satisfied: charset-normalizer<4,>=2 in c:\programdata\anaconda3\lib\site-packages (from requests->python-binance) (3.3.2) Requirement already satisfied: idna<4,>=2.5 in c:\programdata\anaconda3\lib\site-packages (from requests->python-binance) (3.7) Requirement already satisfied: urllib3<3,>=1.21.1 in c:\programdata\anaconda3\lib\site-packages (from requests->python-binance) (2.2.3) Requirement already satisfied: certifi>=2017.4.17 in c:\programdata\anaconda3\lib\site-packages (from requests->python-binance) (2025.1.31) Requirement already satisfied: tzdata in c:\programdata\anaconda3\lib\site-packages (from tzlocal>=0.2->dateparser->python-binance) (2023.3)

    输入 import sys print(sys.executable),它显示正常 C:\ProgramData\anaconda3\python.exe

    输入 import sys !{sys.executable} -m pip install python-binance 它又显示 Defaulting to user installation because normal site-packages is not writeable

    9 条回复    2025-03-21 21:27:46 +08:00
    bolsterhoo
        1
    bolsterhoo  
       213 天前
    because normal site-packages is not writeable
    flyouting
        2
    flyouting  
    OP
       213 天前
    @bolsterhoo 那应该怎么操作呢?能教下吗?我是初学者
    fbichijing
        3
    fbichijing  
       213 天前
    Requirement already satisfied: python-binance
    从字面上看这个库已经安装好了。大部份都是提示信息。你直接导入库跑一跑 demo ,看看有没有问题。
    --------------
    可能的话,我一直让别人自己装原版的 python ,然后需要的库一个一个手动装上去,而不是 anaconda.
    julyclyde
        4
    julyclyde  
       212 天前
    你装完之后都还没有 import 就来问,那你想问什么?
    NoOneNoBody
        5
    NoOneNoBody  
       208 天前
    @julyclyde #4
    估计是个全新手,照着人家的教程想跑个程序
    julyclyde
        6
    julyclyde  
       207 天前
    @NoOneNoBody 要是真的去跑程序应该已经成功了吧
    NoOneNoBody
        7
    NoOneNoBody  
       207 天前
    @julyclyde #6
    不是,github 有些包给的例子就是个 jupyter notebook ,但要跑起来要装很多东西
    flyouting
        8
    flyouting  
    OP
       206 天前
    @NoOneNoBody 对的%>_<
    flyouting
        9
    flyouting  
    OP
       206 天前
    唉,最后还是问 chatgpt 搞定了
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     1237 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 26ms UTC 23:35 PVG 07:35 LAX 16:35 JFK 19:35
    Do have faith in what you're doing.
    ubao snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86