我的金字塔不喜欢 Pandas
my Pyramid does not like Pandas
我在 Openshift Python 3 卡带上有一个不喜欢模块 Pandas 的 Pyramid 服务器,但我无法弄清楚为什么会这样。
在 setup.py
中,方法 setuptools.setup
使用参数 install_requires
和一些模块(例如 pyramid
、biopython
、numpy
),这 运行 很好。但是当我添加 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_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
我认为你有一些问题。
- 大小问题 - 很难重现。但也许我们不需要它(详见下文)
- 现代 Pandas 版本与 Python 3.3 不兼容 - 参见 this
我建议您使用 "ready to go" 发行版,例如 Anaconda 已经预装了 numpy,pandas 等等。
此外 - 不要覆盖系统 Python - 它可能会导致其他问题。
只需 install Anaconda into a separate directory 并在每次要使用 Anaconda 环境时设置它。
PS 或者你可以 Anaconda as Docker
我在 Openshift Python 3 卡带上有一个不喜欢模块 Pandas 的 Pyramid 服务器,但我无法弄清楚为什么会这样。
在 setup.py
中,方法 setuptools.setup
使用参数 install_requires
和一些模块(例如 pyramid
、biopython
、numpy
),这 运行 很好。但是当我添加 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_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
我认为你有一些问题。
- 大小问题 - 很难重现。但也许我们不需要它(详见下文)
- 现代 Pandas 版本与 Python 3.3 不兼容 - 参见 this
我建议您使用 "ready to go" 发行版,例如 Anaconda 已经预装了 numpy,pandas 等等。
此外 - 不要覆盖系统 Python - 它可能会导致其他问题。
只需 install Anaconda into a separate directory 并在每次要使用 Anaconda 环境时设置它。
PS 或者你可以 Anaconda as Docker