簡體   English   中英

如何在 Python3 中安裝袖扣?

[英]How to install cufflinks in Python3?

我在 macOS 上使用 Python 3。 我安裝了袖扣,但 IDLE 顯示

ModuleNotFoundError: No module named 'cufflinks'

我在終端中使用了多個命令,例如:

pip install cufflinks
conda install cufflinks
conda install -c bioconda cufflinks
pip3 install cufflinks
conda-forge install cufflinks

我什至多次嘗試卸載並重新安裝袖扣,但 IDLE 仍然無法正常工作。

遇到了類似的問題,但這在 Ubuntu 和 Jupyter 筆記本上對我有用

conda install -c conda-forge cufflinks-py 

(確保您已以管理員身份打開 cmd 或在 Linux 中使用 sudo)

首先更新你的點子

python -m pip install --upgrade pip

然后安裝

pip install plotly

然后安裝袖扣

pip install cufflinks

我在 Ubuntu 和 Jupyter Notebook 下的環境中安裝:

import sys
!conda install --yes --prefix {sys.prefix} cufflinks

或者:

!{sys.executable} -m pip install cufflinks
conda install -c conda-forge/label/cf202003 cufflinks-py

這對我有用。

袖扣進口問題解決

安裝模塊:

pip install cufflinks

首先導入 sys 模塊:

import sys

然后導入袖扣:

import cufflinks

我希望它也適用於你..

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM