【发布时间】:2019-03-01 17:10:11
【问题描述】:
我用的是linux服务器,但是我没有权限用pip安装包,所以我从https://github.com/blue-yonder/tsfresh下载了我需要的包:tsfresh,然后用ftp上传解压的包我下载到Linux服务器的文件夹,但是我怎么import tsfresh??
我把下载文件夹放在路径/upload/tsfresh,我的python工作目录在/upload/。
以下是我的文件夹upload的子文件夹
./tsfresh
./tsfresh/.github
./tsfresh/binder
./tsfresh/docs
./tsfresh/notebooks
./tsfresh/tests
./tsfresh/tsfresh
./tsfresh/docs/api
./tsfresh/docs/images
./tsfresh/docs/text
./tsfresh/docs/_static
./tsfresh/docs/_templates
./tsfresh/tests/integrations
./tsfresh/tests/units
./tsfresh/tests/integrations/examples
./tsfresh/tests/units/feature_extraction
./tsfresh/tests/units/feature_selection
./tsfresh/tests/units/scripts
./tsfresh/tests/units/transformers
./tsfresh/tests/units/utilities
./tsfresh/tsfresh/convenience
./tsfresh/tsfresh/examples
./tsfresh/tsfresh/feature_extraction
./tsfresh/tsfresh/feature_selection
./tsfresh/tsfresh/scripts
./tsfresh/tsfresh/transformers
./tsfresh/tsfresh/utilities
我的问题是:如何将tsfresh 作为普通包导入。
【问题讨论】:
-
安装软件包不需要管理员权限。您可以使用“pip install --user tsfresh”为当前用户安装它们
-
但是
pip还没有安装,我没有安装它的管理员权限。 -
您也不需要管理员权限来安装 pip。 pip.pypa.io/en/stable/installing
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.pypython get-pip.py --user -
我没有权限将文件保存或写入系统,我是只读用户。