Guojyjy / CoTV

Cooperative control for traffic light signals and connected autonomous vehicles using deep reinforcement learning
MIT License
57 stars 11 forks source link

Install flow issue #2

Closed Gavin-Tao closed 1 year ago

Gavin-Tao commented 1 year ago

(flow) E:\CoTV\flow>python setup.py develop D:\Anaconda\envs\flow\lib\site-packages\setuptools\dist.py:510: InformationOnly: Normalizing '0.5.0.dev' to '0.5.0.dev0' self._validate_version(self.metadata.version) running develop D:\Anaconda\envs\flow\lib\site-packages\setuptools\command\develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated. !!

    ********************************************************************************
    Please avoid running ``setup.py`` and ``easy_install``.
    Instead, use pypa/build, pypa/installer or other
    standards-based tools.

    See https://github.com/pypa/setuptools/issues/917 for details.
    ********************************************************************************

!! easy_install.initialize_options(self) D:\Anaconda\envs\flow\lib\site-packages\setuptools_distutils\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !!

    ********************************************************************************
    Please avoid running ``setup.py`` directly.
    Instead, use pypa/build, pypa/installer or other
    standards-based tools.

    See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
    ********************************************************************************

!! self.initialize_options() running egg_info writing flow.egg-info\PKG-INFO writing dependency_links to flow.egg-info\dependency_links.txt writing requirements to flow.egg-info\requires.txt writing top-level names to flow.egg-info\top_level.txt reading manifest file 'flow.egg-info\SOURCES.txt' adding license file 'LICENSE.md' writing manifest file 'flow.egg-info\SOURCES.txt' running build_ext error: [WinError 2] The system cannot find the file specified

Guojyjy commented 1 year ago

Hi, if you have an issue in Flow Installation, Local Installation of Flow may be helpful to successfully install the Flow, first then run CoTV.

Have you tried pip install -e .? Does it work?

python setup.py develop # if the conda install fails, try the next command to install the requirements using pip
pip install -e . # install flow within the environment

I also provide the CoTV docker image, please try it following the instruction: README: Virtual installation.

BTW, My Ubuntu version is Ubuntu 20.04.2 LTS.

Gavin-Tao commented 1 year ago

Thanks so much for your prompt reply. Problems have been solved. Cool!