1.先要去官网下载pylon 7.5.0
Download Basler Software | Basler AG
2.直接安装会提示:
download is performed unsandboxed as root as file couldn't be accessed by user '_apt'
需要下面操作后才能安装:
Usually apt uses the user _apt
to download packages. In your case _apt
doesn't have write permission to either /var/cache/apt/archives/partial/
or an existing file /var/cache/apt/archives/partial/samba-libs_2%3a4.5.8+dfsg-0ubuntu0.17.04.1_i386.deb
so it downloaded the file as root
.
Make sure /var/cache/apt/archives/partial/
and everything below it are writeable for _apt
, e.g. by running
sudo chown -Rv _apt:root /var/cache/apt/archives/partial/
sudo chmod -Rv 700 /var/cache/apt/archives/partial/
3.安装 Pylon
sudo apt install libgl1-mesa-dri libgl1-mesa-glx libxcb-xinerama0 libxcb-xinput0
sudo apt-get install ./pylon_*.deb ./codemeter*.deb
4.安装 pypylon
pip install pypylon