相关疑难解决方法(0)

Ubuntu 20.04 升级,Python 缺少 libffi.so.6

我最近将我的操作系统升级到 Ubuntu 20.04 LTS。

现在,当我尝试在 Python 中导入像 Numpy 这样的库时,出现以下错误:

ImportError: libffi.so.6: cannot open shared object file: No such file or directory
Run Code Online (Sandbox Code Playgroud)

我尝试安装该libffi软件包,但 apt 找不到它:

sudo apt-get install libffi
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libffi
Run Code Online (Sandbox Code Playgroud)

python ubuntu ubuntu-20.04

64
推荐指数
5
解决办法
3万
查看次数

如何卸载jupyter

我一直在尝试卸载jupyter

我尝试了以下命令

pip uninstall jupyter
pip3 uninstall jupyter
Run Code Online (Sandbox Code Playgroud)

rm -rf /Users/$user/Library/Jupyter/*
Run Code Online (Sandbox Code Playgroud)

即使在终端输入jupyter后运行所有这些命令,我​​也会收到以下消息

usage: jupyter [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir]
               [--paths] [--json]
               [subcommand]
jupyter: error: one of the arguments --version subcommand --config-dir --data-dir --runtime-dir --paths is required
Run Code Online (Sandbox Code Playgroud)

究竟出了什么问题,为什么我仍然可以使用命令?

python jupyter

46
推荐指数
5
解决办法
10万
查看次数

如何正确卸载python jupyter?

我在我的Mac OSXjupyter安装了,但我想要版本.所以,我基本上需要卸载该版本,并重新安装该版本. python3.5python2.73.52.7

但由于某种原因,我无法卸载3.5版本.我试过了sudo python3 -m pip uninstall jupyter,你可以看到下面的结果:

?  ~/current/directory  
20:08 $ which jupyter
/Library/Frameworks/Python.framework/Versions/3.5/bin/jupyter
?  ~/current/directory  
20:08 $ sudo python3 -m pip uninstall jupyter
The directory '/Users/<username>/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Cannot uninstall requirement jupyter, not …
Run Code Online (Sandbox Code Playgroud)

python ipython jupyter jupyter-notebook

10
推荐指数
1
解决办法
1万
查看次数