首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

jupyter notebook安装失败,并显示“TypeError:__call__() takes 2 arguments (1 with )”。

Jupyter Notebook是一个开源的交互式笔记本,可以用于数据清理和转换、数值模拟、统计建模、数据可视化、机器学习等多种领域的工作。它支持多种编程语言,包括Python、R、Julia等,并提供了一个灵活的界面,可以在浏览器中进行交互式编程和数据分析。

对于安装失败并显示"TypeError: call() takes 2 arguments (1 given)"的问题,这通常是由于版本不兼容或安装过程中出现了错误导致的。以下是一些可能的解决方案:

  1. 确保你使用的是最新版本的Jupyter Notebook。你可以通过命令行运行以下命令来更新Jupyter Notebook:pip install --upgrade jupyter notebook
  2. 检查你的Python版本是否与Jupyter Notebook兼容。Jupyter Notebook通常与Python 3.x版本兼容,如果你使用的是Python 2.x版本,可能会导致安装失败。你可以通过以下命令检查Python版本:python --version
  3. 如果你使用的是Anaconda发行版,尝试使用Anaconda Navigator来安装Jupyter Notebook。打开Anaconda Navigator,点击"Home"选项卡,然后在"Applications on"下拉菜单中选择"Not Installed",在搜索框中输入"Jupyter Notebook",然后点击"Install"按钮进行安装。
  4. 如果以上方法都无法解决问题,你可以尝试卸载并重新安装Jupyter Notebook。首先,使用以下命令卸载Jupyter Notebook:pip uninstall jupyter notebook然后,重新安装Jupyter Notebook:pip install jupyter notebook

如果你对Jupyter Notebook的安装仍然遇到问题,建议查阅Jupyter Notebook的官方文档或寻求相关技术支持。

页面内容是否对你有帮助?
有帮助
没帮助

相关·内容

Python安装setuptools遇到的MARKER_EXPR错误

# python setup.py install Traceback (most recent call last):   File "setup.py", line 11, in     import setuptools   File "/home/zhangsan/setuptools-34.4.1/setuptools/__init__.py", line 12, in     import setuptools.version   File "/home/zhangsan/setuptools-34.4.1/setuptools/version.py", line 1, in     import pkg_resources   File "/home/zhangsan/setuptools-34.4.1/pkg_resources/__init__.py", line 72, in     import packaging.requirements   File "/usr/local/lib/python2.7/site-packages/packaging/requirements.py", line 59, in     MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker") TypeError: __call__() takes exactly 2 arguments (1 given) 对于这个错误,只需要提示找到requirements.py的59行,将 MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker") 改成: MARKER_EXPR = originalTextFor(MARKER_EXPR)("marker") 即可。 如果在安装psycopg2遇到错误: Error: pg_config executable not found. 则表示需要安装包postgresql-devel: yum install postgresql-devel

02
  • 常用python组件包

    $ pip list Package Version ---------------------- ------------- aniso8601 2.0.0 asn1crypto 0.23.0 astroid 1.6.2 attrs 17.2.0 Automat 0.6.0 awscli 1.14.14 bcrypt 3.1.4 beautifulsoup4 4.6.0 bleach 1.5.0 boto 2.48.0 boto3 1.5.8 botocore 1.8.22 bs4 0.0.1 bz2file 0.98 certifi 2017.7.27.1 cffi 1.11.0 chardet 3.0.4 click 6.7 colorama 0.3.9 constantly 15.1.0 coreapi 2.3.3 coreschema 0.0.4 cryptography 2.0.3 cssselect 1.0.1 cycler 0.10.0 cymem 1.31.2 cypari 2.2.0 Cython 0.28.2 cytoolz 0.8.2 de-core-news-sm 2.0.0 decorator 4.1.2 dill 0.2.7.1 Django 1.11.5 django-redis 4.8.0 django-rest-swagger 2.1.2 djangorestframework 3.7.3 docutils 0.14 dpath 1.4.2 en-blade-model-sm 2.0.0 en-core-web-lg 2.0.0 en-core-web-md 2.0.0 en-core-web-sm 2.0.0 entrypoints 0.2.3 es-core-news-sm 2.0.0 fabric 2.0.1 Fabric3 1.14.post1 fasttext 0.8.3 flasgger 0.8.3 Flask 1.0.2 Flask-RESTful 0.3.6 flask-swagger 0.2.13 fr-core-news-md 2.0.0 fr-core-news-sm 2.0.0 ftfy 4.4.3 future 0.16.0 FXrays 1.3.3 gensim 3.0.0 h5py 2.7.1 html5lib 0.9999999 hyperlink 17.3.1 idna 2.6 incremental 17.5.0 invoke 1.0.0 ipykernel 4.6.1 ipython 6.2.0 ipython-genutils 0.2.0 ipywidgets 7.0.1

    02
    领券