相关疑难解决方法(0)

如何在Ubuntu Docker容器中设置语言环境?

我正在运行一个Ubuntu Docker容器.我有一个挪威语键盘,需要使用挪威语字符(øæå).

我的终端字符编码设置为UTF-8,我使用SSH连接到我的容器.但是,我无法输入挪威字符,也无法复制和粘贴挪威字符,也不能使用CTL + SHIFT + U + 00f8.

我试过了:

locale-gen nb_NO.UTF-8
Run Code Online (Sandbox Code Playgroud)

但没有改变.如何在Docker容器中设置区域设置和键盘?

ubuntu debian docker

94
推荐指数
8
解决办法
8万
查看次数

麻烦在amazon ec2 linux微实例上安装scimy在virtualenv

我已成功安装scipy在亚马逊ec2微实例(Ubuntu 13.04)上的默认python编译器中.但是我无法安装scipyvirtualenv.

pip install scipy 以此错误结束

scipy/sparse/sparsetools/csr_wrap.cxx: In function ‘void init_csr()’:

scipy/sparse/sparsetools/csr_wrap.cxx:73303:21: warning: variable ‘md’ set but not used [-Wunused-but-set-variable]

c++: internal compiler error: Killed (program cc1plus)

Please submit a full bug report,

with preprocessed source if appropriate.

See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.

----------------------------------------
Cleaning up...
Command /home/ubuntu/pnr/bin/python -c "import setuptools;__file__='/home/ubuntu/pnr/build/scipy/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-t8Drvd-record/install-record.txt --single-version-externally-managed --install-headers /home/ubuntu/pnr/include/site/python2.7 failed with error code -9 in /home/ubuntu/pnr/build/scipy
Run Code Online (Sandbox Code Playgroud)

Traceback (most recent call last):
  File "/home/ubuntu/pnr/bin/pip", line 9, …
Run Code Online (Sandbox Code Playgroud)

python linux amazon-ec2 virtualenv scipy

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

pns安装gensim - 'ascii'编解码器无法解码位置53的字节0xe2

我正在尝试使用我的虚拟机上的pip安装gensim.但是,我收到错误:

Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-jM6uSL-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/scipy
Traceback (most recent call last):
  File "/usr/local/bin/pip", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/pip/__init__.py", line 185, in main
    return command.main(cmd_args)
  File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 161, in main
    text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 53: ordinal not in range(128)
Run Code Online (Sandbox Code Playgroud)

我确实在SO上寻找类似的问题,并发现`pip install pandas`给出UnicodeDecodeError:'ascii'编解码器不能解码位置41中的字节0xe2:序列不在范围(128)中是最接近的.但是,我确实尝试将pip更新到最新版本.

点子版本细节

pip 1.5.6 from /usr/local/lib/python2.7/dist-packages (python 2.7)
Run Code Online (Sandbox Code Playgroud)

有什么想法吗?

python pip python-2.7

5
推荐指数
1
解决办法
2159
查看次数

标签 统计

python ×2

amazon-ec2 ×1

debian ×1

docker ×1

linux ×1

pip ×1

python-2.7 ×1

scipy ×1

ubuntu ×1

virtualenv ×1