浅谈`/lib64/libc.so.6: version 'GLIBC_2.14' not found`

  用python+Pyinstaller搞了个自动备份到七牛云的程序,打包后准备部署到服务器,结果报错/lib64/libc.so.6: version 'GLIBC_2.14' not found,尝试过各种办法都不行,当我还在继续寻找解决办法的时候突然看到篇文章说因为升级GLIBC几乎整个系统都崩溃,升级GLIBC是个高风险的操作。我信了,于是就开始找其他解决办法。
  去看了Pyinstaller文档才知道不能在高版本系统中编译后拿到低版本系统去跑。最好是在低版本系统中编译!而我是在ubuntu16.10中打包的,centos6.2中运行。
  so,换了个centos6.2重新打包然后部署,一切顺利!

pyinstaller 打包错误,OSError: Python library not found: libpython3.4mu.so.1.0, libpython3.4m.so.1.0, libpython3.4.so.1.0

错误提示如下:

24 INFO: PyInstaller: 3.2.1
25 INFO: Python: 3.4.1
25 INFO: Platform: Linux-2.6.32-220.el6.x86_64-x86_64-with-centos-6.2-Final
26 INFO: wrote /home/fmwei/src/lxa.spec
27 INFO: UPX is not available.
29 INFO: Extending PYTHONPATH with paths
['/home/fmwei/src', '/home/fmwei/src']
29 INFO: checking Analysis
29 INFO: Building Analysis because out00-Analysis.toc is non existent
29 INFO: Initializing module dependency graph...
30 INFO: Initializing module graph hooks...
31 INFO: Analyzing base_library.zip ...
1023 INFO: Processing pre-find module path hook   distutils
1814 INFO: running Analysis out00-Analysis.toc
1821 INFO: Caching module hooks...
1825 INFO: Analyzing /home/fmwei/src/lxa.py
1861 INFO: Loading module hooks...
1861 INFO: Loading module hook "hook-encodings.py"...
1906 INFO: Loading module hook "hook-pydoc.py"...
1906 INFO: Loading module hook "hook-xml.py"...
2048 INFO: Loading module hook "hook-distutils.py"...
2058 INFO: Looking for ctypes DLLs
2058 INFO: Analyzing run-time hooks ...
2066 INFO: Looking for dynamic libraries
2353 INFO: Looking for eggs
2353 INFO: Python library not in binary depedencies. Doing additional searching...
Traceback (most recent call last):
  File "/usr/local/python34/bin/pyinstaller", line 9, in <module>
    load_entry_point('PyInstaller==3.2.1', 'console_scripts', 'pyinstaller')()
  File "/usr/local/python34/lib/python3.4/site-packages/PyInstaller/__main__.py", line 90, in run
    run_build(pyi_config, spec_file, **vars(args))
  File "/usr/local/python34/lib/python3.4/site-packages/PyInstaller/__main__.py", line 46, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File "/usr/local/python34/lib/python3.4/site-packages/PyInstaller/building/build_main.py", line 788, in main
    build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
  File "/usr/local/python34/lib/python3.4/site-packages/PyInstaller/building/build_main.py", line 734, in build
    exec(text, spec_namespace)
  File "<string>", line 16, in <module>
  File "/usr/local/python34/lib/python3.4/site-packages/PyInstaller/building/build_main.py", line 212, in __init__
    self.__postinit__()
  File "/usr/local/python34/lib/python3.4/site-packages/PyInstaller/building/datastruct.py", line 161, in __postinit__
    self.assemble()
  File "/usr/local/python34/lib/python3.4/site-packages/PyInstaller/building/build_main.py", line 543, in assemble
    self._check_python_library(self.binaries)
  File "/usr/local/python34/lib/python3.4/site-packages/PyInstaller/building/build_main.py", line 626, in _check_python_library
    raise IOError(msg)
OSError: Python library not found: libpython3.4mu.so.1.0, libpython3.4m.so.1.0, libpython3.4.so.1.0
This would mean your Python installation doesn't come with proper library files.
This usually happens by missing development package, or unsuitable build parameters of Python installation.

* On Debian/Ubuntu, you would need to install Python development packages
  * apt-get install python3-dev
  * apt-get install python-dev
* If you're building Python by yourself, please rebuild your Python with `--enable-shared` (or, `--enable-framework` on Darwin)

- 阅读剩余部分 -

为python3安装pip3

首先安装setuptools

wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-19.6.tar.gz#md5=c607dd118eae682c44ed146367a17e26
tar -zxvf setuptools-19.6.tar.gz
cd setuptools-19.6.tar.gz
python3 setup.py build
python3 setup.py install

然后安装pip3

wget --no-check-certificate https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz#md5=35f01da33009719497f01a4ba69d63c9
tar -zxvf pip-9.0.1.tar.gz
cd pip-9.0.1
python3 setup.py build
python3 setup.py install

也可以去官方模块库找自己需要的版本 https://pypi.python.org/pypi

电脑和树莓派之间文件传输

只要不特意禁止,SSH都会附带SFTP——安全FTP功能,用来做和FTP类似的,上传/下载/管理文件的操作。其实很多FTP软件就“顺便”支持SFTP。

只需在FTP客户端中输入:
主机:sftp://192.168.1.102 (换成您的树莓派的IP地址。前面的sftp://一定要加)
用户名和密码照实填。(Raspbian默认是pi/raspberry)

转自:http://blog.csdn.net/midle110/article/details/46474607