Install — conan 1.64.1 documentation (2024)

This document is for a "1.X" legacy Conan version, which is no longer recommended. Please update to Conan 2, click here to read the Conan 2 documentation

Conan can be installed in many Operating Systems. It has been extensively used and tested in Windows, Linux (different distros), OSX, and isalso actively used in FreeBSD and Solaris SunOS. There are also several additional operating systems on which it has been reported to work.

There are three ways to install Conan:

  1. The preferred and strongly recommended way to install Conan is from PyPI, the Python Package Index, using the pip command.

  2. There are other available installers for different systems, which might come with a bundled python interpreter, so that you don’t have toinstall python first. Note that some of these installers might have some limitations, especially those created with pyinstaller(such as Windows exe & Linux deb).

  3. Running Conan from sources.

Install with pip (recommended)

To install Conan using pip, you need Python>=3.6 distribution installed on your machine.

Warning

Python 2 has been deprecated on January 1st, 2020 by the Python maintainers and from Conan 1.49 it will not be possible to run Conan with Python 2.7, and at least Python>=3.6 will be required. See Python 2 Removal Notice for details.

Install Conan:

$ pip install conan

Important

Please READ carefully

  • Make sure that your pip installation matches your Python>=3.6 version. Lower Python versions will not work.

  • In Linux, you may need sudo permissions to install Conan globally.

  • We strongly recommend using virtualenvs (virtualenvwrapper works great) for everything related to Python.(check https://virtualenvwrapper.readthedocs.io/en/stable/, or https://pypi.org/project/virtualenvwrapper-win/ in Windows)With Python 3, the built-in module venv can also be used instead (check https://docs.python.org/3/library/venv.html).If not using a virtualenv it is possible that conan dependencies will conflict with previously existing dependencies,especially if you are using Python for other purposes.

  • In OSX, especially the latest versions that may have System Integrity Protection, pip may fail. Try using virtualenvs, orinstall with another user $ pip install --user conan.

  • Some Linux distros, such as Linux Mint, require a restart (shell restart, or logout/system if not enough) afterinstallation, so Conan is found in the path.

Known installation issues with pip

  • When Conan is installed with pip install --user <username>, usually a new directory is created for it. However, the directoryis not appended automatically to the PATH and the conan commands do not work. This can usually be solved restarting the session ofthe terminal or running the following command:

    $ source ~/.profile

Install from brew (OSX)

There is a brew recipe, so in OSX, you can install Conan as follows:

$ brew update$ brew install conan

Install from AUR (Arch Linux)

The easiest way to install Conan on Arch Linux is by using one of the Arch User Repository (AUR) helpers, e.g., yay, aurman, or pakku.For example, the following command installs Conan using yay:

$ yay -S conan

Alternatively, build and install Conan manually using makepkg and pacman as described in the Arch Wiki.Conan build files can be downloaded from AUR: https://aur.archlinux.org/packages/conan/.Make sure to first install the three Conan dependencies which are also found in AUR:

  • python-patch-ng

  • python-node-semver

  • python-pluginbase

Install the binaries

Go to the conan website and download the installer for your platform!

Execute the installer. You don’t need to install python.

Initial configuration

Check if Conan is installed correctly. Run the following command in your console:

$ conan

The response should be similar to:

Consumer commands install Installs the requirements specified in a recipe (conanfile.py or conanfile.txt). config Manages Conan configuration. get Gets a file or list a directory of a given reference or package. info Gets information about the dependency graph of a recipe. ...

Tip

If you are using Bash, there is a bash autocompletion project created by the community for Conan commands:https://gitlab.com/akim.saidani/conan-bashcompletion

Install from source

You can run Conan directly from source code. First, you need to install Python andpip.

Clone (or download and unzip) the git repository and install it with:

# clone folder name matters, to avoid imports issues$ git clone https://github.com/conan-io/conan.git conan_src$ cd conan_src$ python -m pip install -e .

Test your conan installation.

$ conan

You should see the Conan commands help.

Update

If installed via pip, Conan can be easily updated:

$ pip install conan --upgrade # Might need sudo or --user

If installed via the installers (.exe, .deb), download the new installer and execute it.

The default <userhome>/.conan/settings.yml file, containing the definition of compiler versions, etc.,will be upgraded if Conan does not detect local changes, otherwise it will create a settings.yml.new with the new settings.If you want to regenerate the settings, you can remove the settings.yml file manually and it will be created with the new information the first time it is required.

The upgrade shouldn’t affect the installed packages or cache information. If the cache becomes inconsistent somehow, you may want to remove its content by deleting it (<userhome>/.conan).

Python 2 Removal Notice

From version 1.49, Conan will not work with Python 2. This is because security vulnerabilities of Conan dependencies that haven’t been addressed in Python 2, so the only alternative moving forward is to finally remove Python 2 support.

Python 2 was officially declared End Of Life in January 2020, and Conan 1.22 already declared Python 2 as not supported. Extra blockers have been added in previous Conan releases to make everyone aware. Now the security vulnerabilities that are out of our scope, makes impossible to move forward support for Python 2. Please upgrade to Python>=3.6 to continue using Conan>=1.49.

If you have any issue installing Conan, please report in the Conan issue tracker or write us to info@conan.io.

Install — conan 1.64.1 documentation (2024)

References

Top Articles
Serious Hit and Run Collision in Montgomery Village Under Investigation - The MoCo Show
Lia McHugh Interview: Eternals
Happel Real Estate
Basketball Stars Unblocked 911
Krdo Weather Closures
Air Chat En Espanol
Coverwood Terriers For Sale
Jodie Sweetin Breast Reduction
Erhöhte Gesundheitsgefahr durch Zuckeraustauschstoff Erythrit?
16Th Or 16Nd
Trey Yingst Parents Nationality
7 Best Character Builds In Nioh 2
Ucf Off Campus Partners
J. Foster Phillips Funeral Home Obituaries
Partyline Ads for Wednesday, September 11, 2024
Honda Accord 2012 gebraucht - AutoUncle
When modern Eurasia was born: Genetics yield clues to origins of Eurasians
Free Bubble Letters Generator | Add bubble letters with a click!
Liquor World Sharon Ma
Tethrd Coupon Code The Hunting Public
Free 120 Step 2 Correlation
Soul of the Brine King PoE Pantheon 3.14 Upgrade
Appraisalport Com Dashboard /# Orders
Noel Berry's Biography: Age, Height, Boyfriend, Family, Net Worth
11000, EVV Compliance Reviews | Texas Health and Human Services
Kobe Express Bayside Lakes Photos
222 US Dollars to Euros - 222 USD to EUR Exchange Rate
Gold Bowl Vidalia La Menu
Pillowtalk Leaked
3Kh0 1V1 Lol
Match The Criminal To The Weapon
O'reilly's Los Banos
Auto Next, 2496 Mount Moriah Rd, Memphis, TN 38115, US - MapQuest
Februarycash2023
Apex Item Store.com
What Auto Parts Stores Are Open
Crystal Westbrooks Nipple
Saw X Showtimes Near Regal Ronkonkoma
O'reilly's In Monroe Georgia
Trizzle Aarp
Family Link from Google - Family Safety & Parental Control Tools
Download Diablo 2 From Blizzard
Rabbi Raps
911 Active Calls Caddo
Wgu Admissions Login
Unity Webgl Car Tag
Swim University Chemical Calculator
Bass Tracker Boats For Sale On Craigslist
Akc Eo Tryouts 2022
Vorschau: Battle for Azeroth – eine Tour durch Drustvar
Iemand ervaring met FC-MOTO??
Latest Posts
Article information

Author: Errol Quitzon

Last Updated:

Views: 6327

Rating: 4.9 / 5 (79 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Errol Quitzon

Birthday: 1993-04-02

Address: 70604 Haley Lane, Port Weldonside, TN 99233-0942

Phone: +9665282866296

Job: Product Retail Agent

Hobby: Computer programming, Horseback riding, Hooping, Dance, Ice skating, Backpacking, Rafting

Introduction: My name is Errol Quitzon, I am a fair, cute, fancy, clean, attractive, sparkling, kind person who loves writing and wants to share my knowledge and understanding with you.