Need to manually copy new modules to /dist-packages/ after installing a Python package

I made private clones of two repos on Github to test new functionality that I’m exploring on Google Colab. In the first cell of my Google Colab notebooks, I have the following code which clones my personal clones on Github down to my Google Colab terminal and then installs the packages from the created directories:

## install elegantrl library
!git clone https://*private token*digofr/ElegantRL.git
!pip install ./ElegantRL/

## install finrl library
!git clone https://*private token*digofr/FinRL.git
!pip install ./FinRL/

Once the directories content/ElegantRL/ and content/FinRL/ are created after the clone command, I can find in them my new files and changes to both repos (confirming that Google Colab cloned my repos and not the original ones). However, for the ElegantRL package, I have to manually copy the new modules I wrote for it to the ./usr/local/lib/python3.10/dist-packages/elegantRL directory after I issue the command “pip install ./ElegantRL/” (and I also need to overwrite some of the modules that appear there in their original version with my updated versions). I have to do this every time I initiate a new runtime on Google Colab, otherwise I can’t use my new functions because python doesn’t find them. Fortunately, I don’t need to do this for the FinRL package as well; it installs as expected.

I didn’t change the setup.py modules in either of the original repos. For ElegantRL reads:

from setuptools import setup, find_packages

setup(
    name=”ElegantRL”,
    version=”0.3.7”,
    author=”AI4Finance Foundation”,
    author_email=”[email protected]”,
    url=”https://github.com/AI4Finance-Foundation/ElegantRL”,
    license=”Apache 2.0”,
    packages=find_packages(),
    install_requires=[
        “torch”,
        “numpy”,
        “matplotlib”,
        “gym”,
        “gym[Box2D]",
    ],
    description=”Lightweight, Efficient and Stable DRL Implementation Using PyTorch”,
    classifiers=[
        # Trove classifiers
        # Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
        "License :: OSI Approved :: Apache Software License",
        "Programming Language :: Python",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
        "Programming Language :: Python :: 3.11",
        "Programming Language :: Python :: Implementation :: CPython",
        "Programming Language :: Python :: Implementation :: PyPy",
    ],
    keywords="Deep Reinforcement Learning",
    python_requires=">=3.6”,
)

One thing that I also noticed is that I do get an installation error every time I install the ElegantRL package (but not with FinRL). I don’t know if it is related to this problem, but at least it doesn’t seem to cause any further issues. The error log reads:

Building wheels for collected packages: ElegantRL, box2d-py
  Building wheel for ElegantRL (setup.py) … done
  Created wheel for ElegantRL: filename=ElegantRL-0.3.7-py3-none-any.whl size=198800 sha256=9f2562bed77a0361e700ed3b1966fb8975cbe39c5daba21b7dafec1e2edc6ca3
  Stored in directory: /tmp/pip-ephem-wheel-cache-6bryulqo/wheels/89/2f/3d/d0aaf7020f4fb8e091b240743b79d45a69b2d5531003f2f007
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  Building wheel for box2d-py (setup.py) … error
  ERROR: Failed building wheel for box2d-py
  Running setup.py clean for box2d-py
Successfully built ElegantRL
Failed to build box2d-py
ERROR: Could not build wheels for box2d-py, which is required to install pyproject.toml-based projects

I’d like not to need to copy manually my new modules to the /dist-packages/ directory every time I install my version of the ElegantRL repo on a new terminal.

New contributor

Rodrigo Ferreira da Rosa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật