nohup 运行python程序不能导包

在服务器上 python nohup运行无法导包,无法后台挂起运行
编辑了一个文件test_nohup.py:

import numpy as np
import folium

a = np.array([[1,2],[3,4]])
print(a)

运行:
不加nohup,python3 test_nohup.py
[[1 2]
[3 4]]

2.加nohup,nohup python3 test_nohup.py > file.log 2>&1 &

nohup: ignoring input
Traceback (most recent call last):
File "test_nohup.py", line 2, in
import folium
ModuleNotFoundError: No module named 'folium'

我安装了folium库,但是不能nohup运行,这是什么问题呢?

你pip list看一下呢