我的金字塔不喜欢Pandas

2024-06-16 17:26:19 发布

您现在位置:Python中文网/ 问答频道 /正文

我在Openshift python3盒式磁带上有一个金字塔服务器,它不喜欢Pandas模块,但我不知道怎么弄清楚为什么会这样。你知道吗

setup.py中,使用参数install_requires调用方法setuptools.setup,并使用一些运行良好的模块(如pyramidbiopythonnumpy)。但是当我添加pandas时,它失败了。这是它在推送过程中所说的(为了安全起见增加了=审查):

remote: Installing collected packages: six, python-dateutil, pytz, pandas
remote:   Found existing installation: six 1.3.0
remote:     Not uninstalling six at /opt/rh/python33/root/usr/lib/python3.3/site-packages, outside environment /var/lib/openshift/✱✱✱✱✱/python/virtenv/venv
remote:   Running setup.py install for pandas: started
remote:     Running setup.py install for pandas: still running...
remote:     Running setup.py install for pandas: still running...
remote:     Running setup.py install for pandas: still running...
remote:     Running setup.py install for pandas: still running...
remote:     Running setup.py install for pandas: still running...
remote:     Running setup.py install for pandas: still running...
Connection to pedel2-matteoferla.rhcloud.com closed by remote host.
fatal: The remote end hung up unexpectedly
error: error in sideband demultiplexer
To ssh://pedel2-matteoferla.rhcloud.com/~/git/pedel2.git/
   ✱✱✱  master -> master
error: failed to push some refs to 'ssh://✱✱✱✱@pedel2-matteoferla.rhcloud.com/~/git/pedel2.git/'

添加requirements.txt文件不会影响它,因为当我将ssh添加到服务器并手动安装pip时,也会出现权限问题。也就是说/var/lib/openshift不是我的虚拟环境。你知道吗

remote: Activating virtenv
remote: Checking for pip dependency listed in requirements.txt file..
remote: The directory '/var/lib/openshift/✱✱✱✱/.cache/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.

虚拟python中的Pip3也是这样做的。你知道吗

cd /python/virtenv/venv/bin/
./pip3 install pandas

Easy\u install是正确的,但是没有权限,所以这种方法是错误的。你知道吗

pedel2-matteoferla.rhcloud.com bin]\> ./easy_install pandas
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 122] Disk quota exceeded: '/var/lib/openshift/✱✱✱✱/python/virtenv/venv/lib/python3.3/site-packages/test-easy-install-247598.write-test'

我想我应该用setuptools模块来解决这个问题。这意味着我需要从那里找出原因。但我被困住了。你知道吗

编辑。这不是我的磁盘配额。你知道吗

Matteos-Air-3:pedel2 matteo$ rhc show-app pedel2 --gears quota

Gear                     Cartridges   Used Limit
------------------------ ---------- ------ -----
✱✱✱✱                     python-3.3 268 MB  1 GB

Tags: installpypandasforremotevarlibsetup
1条回答
网友
1楼 · 发布于 2024-06-16 17:26:19

我想你有一些问题。你知道吗

  1. 尺寸问题-很难复制。但也许我们不需要它(详见下文)
  2. 现代版本与python3.3不兼容-请参见this

我建议你使用“随时可用”的分销,如Anaconda与已经预装numpy,pandas和更多。你知道吗

除此之外-不要覆盖systmepython-它可能会导致另一个问题。你知道吗

只要install Anaconda into a separate directory并设置Anaconda环境,每次你想使用它。你知道吗

PS或者你可以有Anaconda as Docker

相关问题 更多 >