ImportError: No module named folium?

ImportError: No module named folium?

我试过用 :

安装 folium
pip install folium

并且:

conda install -c conda-forge folium

我也试过安装特定版本,但还是不行。当我再次尝试安装命令时,我得到了这个:

    Defaulting to user installation because normal site-packages is not writeable
    Requirement already satisfied: folium==0.11.0 in /home/rem/.local/lib/python3.8/site-packages 
    (0.11.0)
    Requirement already satisfied: jinja2>=2.9 in /usr/lib/python3/dist-packages (from 
    folium==0.11.0) (2.10.1)
    Requirement already satisfied: branca>=0.3.0 in /home/rem/.local/lib/python3.8/site-packages 
    (from folium==0.11.0) (0.4.1)
    Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from folium==0.11.0) 
    (2.22.0)
    Requirement already satisfied: numpy in /home/rem/.local/lib/python3.8/site-packages (from
    folium==0.11.0) (1.18.5)

我也试过:

conda install branca

或:

pip install branca

我仍然得到这个错误:

            line 1, in <module>
     import folium
ImportError: No module named folium

请帮忙!!!

始终可以使用 wheelodex 站点手动下载和安装任何 pip 软件包,如下所示:

  1. 转到https://www.wheelodex.org/projects/folium/
  2. 在上面的页面上关注download link,您将获得folium-0.11.0-py2.py3-none-any.whl个文件。
  3. 使用 pip 安装文件,例如 python -m pip install folium-0.11.0-py2.py3-none-any.whl

您也可以用类似的方式安装其他 non-working 包。