python-example && cd python-example Creating a virtualenv for this project… Using /home/username/miniconda3/bin/python3.6m...(3.6.4) to create virtualenv… ⠋Running virtualenv with interpreter /home/username/miniconda3/bin/python3.6m...miniconda3' New python executable in /home/username/.local/share/virtualenvs/python-example-YJNpmGYi/bin/python3.6m
python3.6-config --cflags python3.6-config --ldflags 以下是对应的输出 -I/usr/include/python3.6m -I/usr/include.../python3.6m -Wno-unused-result -Wsign-compare -g -fdebug-prefix-map=/build/python3.6-MtRqCA/python3.6...由于 cgo 默认使用的编译器不是 gcc ,所以输出中的部分选项并不受支持,所以最后 cgo 代码的配置为 //#cgo CFLAGS : -I./ -I/usr/include/python3.6m
Python 3: Interpreter: /home/qy/software/anaconda3/envs/machineLearning/bin/python3.6m...site-packages Python (for build): /home/qy/software/anaconda3/envs/machineLearning/bin/python3.6m...BUILD_opencv_python2=no -D PYTHON3_EXECUTABLE=/home/qy/software/anaconda3/envs/machineLearning/bin/python3.6m...-D PYTHON3_INCLUDE_DIR=/home/qy/software/anaconda3/envs/machineLearning/include/python3.6m -D PYTHON3...python3.6/site-packages -D PYTHON_DEFAULT_EXECUTABLE=/home/qy/software/anaconda3/envs/machineLearning/bin/python3.6m
rwxr-xr-x 1 root root 4568920 Oct 3 14:45 python3.6 -rwxr-xr-x 1 root root 4568920 Oct 3 14:45 python3.6m...lrwxrwxrwx 1 root root 10 Mar 18 00:34 python3m -> python3.6m lrwxrwxrwx 1 root root
:= $(HOME)/anaconda3 PYTHON_INCLUDE := $(ANACONDA_HOME)/include \ $(ANACONDA_HOME)/include/python3.6m...= boost_python-py36 python3.6m (2)修改NVCCFLAGS NVCCFLAGS +=-ccbin=$(CXX) -Xcompiler-fPIC $(COMMON_FLAGS...:= $(HOME)/anaconda3 PYTHON_INCLUDE := $(ANACONDA_HOME)/include \ $(ANACONDA_HOME)/include/python3.6m...= boost_python-py36 python3.6m 3.2 安装库与编译 库安装: cd python/ pip install -r requirements.txt 编译: sudo
caffe_source PYTHON_INCLUDE := $(ANACONDA_HOME)/include \ $(ANACONDA_HOME)/include/python3.6m...= boost_python3 python3.6m 1.4 编译caffe make all -j8 make test -j8 make pycaffe -j8 # 如果报错 需重新编译 make
tty1 00:00:00 ibus-daemon 我的python情况 dflx@dflx:~$ python python python3 python3.6m...python: /usr/bin/python2.7 /usr/bin/python3.6m-config /usr/bin/python /usr/bin/python3.6 /usr/bin/python3.6m...etc/python3.6 /usr/local/lib/python2.7 /usr/local/lib/python3.6 /usr/include/python3.6 /usr/include/python3.6m...python3.6m-config /home/dflx/anaconda3/bin/python /home/dflx/anaconda3/bin/python3.6 /home/dflx/anaconda3/bin/python3.6m
那就是个软连接的意思了 whereis python 找下路径 python: /usr/bin/python3.6 /usr/bin/python2.7 /usr/bin/python /usr/bin/python3.6m...lib/python3.6 /usr/local/lib/python2.7 /usr/include/python3.6 /usr/include/python2.7 /usr/include/python3.6m
ls /usr/local/python3/bin/ 2to3 easy_install-3.6 idle3.6 pip3.6 pydoc3.6 python3.6 python3.6m...easy_install-3.6 idle3.6 iptest3 ipython3 pip3 pydoc3 pygmentize python3.6 python3.6m
我的是2.6),这是因为你还没有建立软连接 首先将老版本改名 mv /usr/bin/python /usr/bin/python26 建立新的软链接 ln -s /root/anaconda3/bin/python3.6m
pip3 pydoc3 python3 python3.6 python3.6m... pip3 pydoc3 python3 python3.6 python3.6m...pyi-bindepend pyi-set_version python-config python2.7 python3-config python3.6m
-Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/python3/include/python3.6m
easy_install-3.6 idle3 idle3.6 pip3 pip3.6 pydoc3 pydoc3.6 python3 python3.6 python3.6-config python3.6m
Dversion_info=(1,4,4,'final',0) -D__version__=1.4.4 -I/usr/include/mysql -I/root/anaconda3/envs/py36/include/python3.6m...Dversion_info=(1,4,4,'final',0) -D__version__=1.4.4 -I/usr/include/mysql -I/root/anaconda3/envs/py36/include/python3.6m
使用的是Python3.5 catkin config -DPYTHON_EXECUTABLE=/usr/bin/python3 -DPYTHON_INCLUDE_DIR=/usr/include/python3.6m
— Found PythonInterp: /usr/bin/python3 (found version “3.6.8”) — Found PythonLibs: python3.6m — Performing
ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.6m
install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.6m...install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.6m
# python3 g++ -shared -o helloworld.so -fPIC -I/usr/include/python3.6m/ helloworld.cpp -lpython3.6m -
领取专属 10元无门槛券
手把手带您无忧上云