3 years, 8 months ago.

How does one update the mbed CLI to the latest version?

I'm running the mbed CLI on a Linux PC. Currently, I have mbed CLI version 0.9.1 installed. The latest version on the GitHub/mbed-cli repository is version 1.0.0. How does one update the mbed CLI to the latest version? I installed version 0.9.1 using "pip install mbed-cli".

1 Answer

3 years, 8 months ago.

pip install -U mbed-cli

Accepted Answer

I tried this also, but I get an error message:

D:\Projects\Sn\LocalGit\mbed-classic-program>pip install -U mbed-cli Collecting mbed-cli Downloading mbed-cli-1.0.0.zip (50kB) 100% |######| 51kB 29kB/s Building wheels for collected packages: mbed-cli Running setup.py bdist_wheel for mbed-cli ... done Stored in directory: C:\Users\sn\AppData\Local\pip\Cache\wheels\7c\18\81\ec1318c11501fc9ab8f39e8d50621137625461a 17ab2928502 Successfully built mbed-cli Installing collected packages: mbed-cli Found existing installation: mbed-cli 0.9.10 Uninstalling mbed-cli-0.9.10: Successfully uninstalled mbed-cli-0.9.10 Rolling back uninstall of mbed-cli Exception: Traceback (most recent call last): File "c:\python27\lib\site-packages\pip\basecommand.py", line 215, in main status = self.run(options, args) File "c:\python27\lib\site-packages\pip\commands\install.py", line 317, in run prefix=options.prefix_path, File "c:\python27\lib\site-packages\pip\req\req_set.py", line 742, in install **kwargs File "c:\python27\lib\site-packages\pip\req\req_install.py", line 831, in install self.move_wheel_files(self.source_dir, root=root, prefix=prefix) File "c:\python27\lib\site-packages\pip\req\req_install.py", line 1032, in move_wheel_files isolated=self.isolated, File "c:\python27\lib\site-packages\pip\wheel.py", line 247, in move_wheel_files prefix=prefix, File "c:\python27\lib\site-packages\pip\locations.py", line 140, in distutils_scheme d = Distribution(dist_args) File "c:\python27\lib\site-packages\setuptools\dist.py", line 270, in __init__ for ep in pkg_resources.iter_entry_points('distutils.setup_keywords'): File "c:\python27\lib\site-packages\pkg_resources\__init__.py", line 706, in iter_entry_points entries = dist.get_entry_map(group) File "c:\python27\lib\site-packages\pkg_resources\__init__.py", line 2577, in get_entry_map self._get_metadata('entry_points.txt'), self ........ File "c:\python27\lib\site-packages\pkg_resources\__init__.py", line 2502, in _get_metadata if self.has_metadata(name): File "c:\python27\lib\site-packages\pkg_resources\__init__.py", line 1463, in has_metadata return self.egg_info and self._has(self._fn(self.egg_info, name)) File "c:\python27\lib\site-packages\pkg_resources\__init__.py", line 1824, in _has return zip_path in self.zipinfo or zip_path in self._index() File "c:\python27\lib\site-packages\pkg_resources\__init__.py", line 1704, in zipinfo return self._zip_manifests.load(self.loader.archive) File "c:\python27\lib\site-packages\pkg_resources\__init__.py", line 1644, in load mtime = os.stat(path).st_mtime WindowsError: [Error 2] Das System kann die angegebene Datei nicht finden: 'c:
mbed_cli-0 .9.10-py2.7.egg'

posted by Johannes Stratmann 22 Nov 2016