Closed Jiankai-Sun closed 2 years ago
Hello @JiankaiSun-SJTU-MVIG-training, second one almost succeed:
make[2]: *** No rule to make target '/home/jack/miniconda3/envs/uni/lib/python3.6/config-3.6m-x86_64-linux-gnu/libpython3.6.so', needed by 'bin/python3/vizdoom.so'. Stop.
Is this the right path for miniconda? (I have never tested building with it, I will try later today). Did you use pip to build ViZDoom in both cases?
Could you try to build ViZDoom manually using local_boost_python branch, CMake and providing paths to Python like this: ?
cmake -DCMAKE_BUILD_TYPE=Release \
-DBUILD_PYTHON3=ON \
-DPYTHON_INCLUDE_DIR=$HOME/anacondaX/include/pythonX \
-DPYTHON_LIBRARY=$HOME/anacondaX/lib/libpythonX.dylib \
-DPYTHON_EXECUTABLE=$HOME/anacondaX/bin/pythonX \
-DNUMPY_INCLUDES=$HOME/anacondaX/lib/pythonX.X/site-packages/numpy/core/include
Sorry, I know it's pretty inconvenient, we are working to improve support for conda environments.
python_library = os.path.join(sysconfig.get_config_var('LIBPL'),
'libpython{}.{}'.format(sysconfig.get_python_version(),
dynamic_library_extension))
...
cmake_arg_list.append('-DPYTHON_LIBRARY={}'.format(python_library))
This lines set wrong path to libpython.so for anaconda/minicodna in setup.py
Thank you. The problem is solved by using virtualenv
!
I recently rewrote Python bindings, so they no longer need Boost.Python and should install via pip also for Anaconda/Miniconda Pythons. I am still testing them them for some memory leaks and they will reach the master as version 1.1.4 soon. But if you would like to use them now, you can install them from pybind11 branch:
git clone https://github.com/mwydmuch/ViZDoom.git -b pybind11
cd ViZDoom
pip install .
Old issue, conda support was improved, closing.
Evironment:
I use Miniconda on Ubuntu 16.04 x64.
Firstly, I try to install ViZDoom with the guide of
Installation via PyPI
, all dependencies are already installed.But the installation still failed. The information is shown below:
Secondly, I tried another scheme provided by the offical documentation.
clone local_boost_python branch to install ViZDoom with it's own version of library
. Another two errors occurs:How to solve the above problems and successfully install ViZDoom? Thank you.