Translations:Anaconda/31/en: Difference between revisions
Jump to navigation
Jump to search
(Created page with "# List the dependencies (requirements) of the application you want to use. # Find which dependencies are Python modules and which are libraries provided by Anaconda. For examp...") |
No edit summary |
||
Line 1: | Line 1: | ||
# List the dependencies (requirements) of the application you want to use. | # List the dependencies (requirements) of the application you want to use. To do so, you can: | ||
## Run <code>pip show <package_name></code> from your virtual environment (if the package exists on [https://pypi.org/ PyPI]) | |||
## Or, check if there is a <tt>requirements.txt</tt> file in the Git repository. | |||
## Or, check the variable <tt>install_requires</tt> of the file <tt>setup.py</tt>, which lists the requirements. | |||
# Find which dependencies are Python modules and which are libraries provided by Anaconda. For example, CUDA and CuDNN are libraries which are available on Anaconda Cloud but which you should not install yourself on our clusters - they are already installed. | # Find which dependencies are Python modules and which are libraries provided by Anaconda. For example, CUDA and CuDNN are libraries which are available on Anaconda Cloud but which you should not install yourself on our clusters - they are already installed. | ||
# Remove from the list of dependencies everything which is not a Python module (e.g. <tt>cudatoolkit</tt> and <tt>cudnn</tt>). | # Remove from the list of dependencies everything which is not a Python module (e.g. <tt>cudatoolkit</tt> and <tt>cudnn</tt>). | ||
# Use a [[Python#Creating_and_using_a_virtual_environment|virtual environment]] in which you will install your dependencies. | # Use a [[Python#Creating_and_using_a_virtual_environment|virtual environment]] in which you will install your dependencies. |
Latest revision as of 16:38, 5 March 2020
- List the dependencies (requirements) of the application you want to use. To do so, you can:
- Run
pip show <package_name>
from your virtual environment (if the package exists on PyPI) - Or, check if there is a requirements.txt file in the Git repository.
- Or, check the variable install_requires of the file setup.py, which lists the requirements.
- Run
- Find which dependencies are Python modules and which are libraries provided by Anaconda. For example, CUDA and CuDNN are libraries which are available on Anaconda Cloud but which you should not install yourself on our clusters - they are already installed.
- Remove from the list of dependencies everything which is not a Python module (e.g. cudatoolkit and cudnn).
- Use a virtual environment in which you will install your dependencies.