官术网_书友最值得收藏!

Installing PyCUDA (Linux)

Open up a command line in Linux. Ensure that your PATH variable is set up correctly to use the local Anaconda installation of Python (rather than the system-wide installation) by typing which python at the bash prompt and pressing Enter (Anaconda should have automatically configured your .bashrc during installation); this should tell you that the Python binary is in your local ~/anaconda2/bin directory, rather than in the /usr/bin directory. If this isn't the case, open a text editor and put the line export PATH="/home/${USER}/anaconda2/bin:${PATH}" at the end of your ~/.bashrc file, save this, open a new Terminal, and then check again.

There are several options for installation of PyCUDA. The easiest option is to install the latest stable version from the PyPI repository by typing pip install pycuda. You can also install the latest version of PyCUDA by following the instructions at the PyCUDA official website at https://mathema.tician.de/software/pycuda/. Please note that if you wish to re-install PyCUDA from a different source, be sure to uninstall it first with pip uninstall pycuda.

主站蜘蛛池模板: 鄯善县| 聊城市| 蓬莱市| 松滋市| 宜兰县| 吉安县| 自贡市| 朝阳区| 招远市| 福贡县| 图木舒克市| 乐安县| 霍山县| 瑞丽市| 龙陵县| 卓尼县| 阳春市| 博白县| 贵溪市| 始兴县| 五寨县| 汕头市| 白朗县| 东兴市| 福海县| 山东省| 静安区| 阜南县| 新巴尔虎右旗| 丹江口市| 闽清县| 前郭尔| 菏泽市| 耒阳市| 宽甸| 玉环县| 镇安县| 浮梁县| 哈巴河县| 岳普湖县| 闸北区|