-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
conda command failure #6171
Comments
See Issue #1837 for more information on how to fix this. Closing as duplicate of #1837 Please remember to update to the latest version of Navigator to include Open a terminal (on Linux or Mac) or the Anaconda Command Prompt (on windows)
|
Conda command just does not work to do a conda update |
@midhubalan what is the error when running the conda command from the terminal/anaconda-prompt |
Multiple of these same issues have been posted and closed by the same person. With the fully updated conda suggested as well as
I have not included anconda in my path as to not interfer with the system version of python, but I have used aliases to run as required. Just to list the full return again with fully update anaconda3 at 1013 EST on 2017-09-27 on a fully up-to-date Fedora 26 x64 KDE spin system with a version downloaded yesterday:
Running as regular user, running conda for update works either as an alias or within the local bin directory. Do you suggest installing as root or super users and putting in an area such as /opt and giving 777 or 775 permissions? |
You have somehow picked up a conda version that is out of sync with the activate scripts. To remedy this, I think you might need to do a fresh install of anaconda or miniconda from the .exe installers. |
@goanpeca conda command is not recognized i get the following message when i start the conda prompt. |
I am having the same problem: |
after I interupted a anaconda prompt...when restart and then nothing could save it for now.... |
Brand new installation of Anaconda3 on Windows 10 system. When the system is restarted I get the following: C:\Users\jerry\Anaconda3>conda update Directly running conda.exe outputs the following, NOTICE, No Update option: C:\Users\jerry\Anaconda3>conda.exe positional arguments: optional arguments: Please let me know what I am doing wrong |
This command doesn't work ,my OS is win10(64),python3.5 |
I did some more investigation. In my case, the problem was with Google TensorFlow. Their PIP based installation inside an enviroment replace conda.exe with an older/broke version. Since I need TensorFlow more than environments I have to, unfortunately, abandon environments until this is fixed. But, since Google says that Conda is community supported, not sure if they will do anything. The command that causes the replacement is : pip install --ignore-installed --upgrade tensorflow-gpu |
@JerryKurata Can you provide some more details on how conda is breaking when you pip install tensorflow? I followed the instructions for installing tensorflow on Windows with Anaconda and had no issue running conda afterwords. It should be safe to not include the |
@jjhelmus Sure. Here is what I did.
I appreciate any guidance you can provide. I am probably doing something dumb. Thanks in advance. |
usage: conda [-h] i installed the TensorFlow on windows normally ,the same of upstairs,but when i reboot the windows , the result is same wrong. |
A little more information on working around this. I made a copy of my Anaconda3\scripts folder before installing tensorflow-gpu. Then installed tensorflow-gpu. After installing tensorflow-gpu, the conda.exe was replaced with the incorrect version. But I could replace it with the correct version of conda.exe from my copy and get it going. |
I solved my problem following this: https://stackoverflow.com/a/46493533/8936445 In short, after activating the created environment, instead of "pip install --ignore-installed --upgrade tensorflow-gpu", use "pip install tensorflow-gpu". |
Another way of fixing this issue, if one has a restore point available, is to go to the scripts folder (e.g. C:\ProgramData\Anaconda2\Scripts ) , right-click on conda.exe and select "Restore previous version". |
If this message coming up every time you start the terminal (linux) is what is annoying you and led you here, |
I created a new environment for tensorflow following instructions from this repo
When restarted my computer and launched anaconda command prompt
I received following message and conda command was not recognized:
usage: conda [-h]
{keygen,sign,unsign,verify,unpack,install,install-scripts,convert,version,help}
...
conda: error: invalid choice: '..checkenv' (choose from 'keygen', 'sign', 'unsign', 'verify', 'unpack', 'install', 'install-scripts', 'convert', 'version', 'help')
I tried launching anaconda using navigator
Navigator Error
An unexpected error occurred on Navigator start-up
Report
Please report this issue in the anaconda issue tracker
Main Error
byte indices must be integers or slices, not str
Traceback
Traceback (most recent call last):
File "C:\Users\XXXX\Anaconda3\lib\site-packages\anaconda_navigator\exceptions.py", line 75, in exception_handler
return_value = func(*args, **kwargs)
File "C:\Users\XXXX\Anaconda3\lib\site-packages\anaconda_navigator\app\start.py", line 115, in start_app
window = run_app(splash)
File "C:\Users\XXXX\Anaconda3\lib\site-packages\anaconda_navigator\app\start.py", line 58, in run_app
window = MainWindow(splash=splash)
File "C:\Users\XXXX\Anaconda3\lib\site-packages\anaconda_navigator\widgets\main_window.py", line 160, in init
self.api = AnacondaAPI()
File "C:\Users\XXXX\Anaconda3\lib\site-packages\anaconda_navigator\api\anaconda_api.py", line 1205, in AnacondaAPI
ANACONDA_API = _AnacondaAPI()
File "C:\Users\XXXX\Anaconda3\lib\site-packages\anaconda_navigator\api\anaconda_api.py", line 65, in init
self._conda_api = CondaAPI()
File "C:\Users\XXXX\Anaconda3\lib\site-packages\anaconda_navigator\api\conda_api.py", line 1622, in CondaAPI
CONDA_API = _CondaAPI()
File "C:\Users\XXXX\Anaconda3\lib\site-packages\anaconda_navigator\api\conda_api.py", line 340, in init
self.set_conda_prefix()
File "C:\Users\XXXX\Anaconda3\lib\site-packages\anaconda_navigator\api\conda_api.py", line 489, in set_conda_prefix
self.ROOT_PREFIX = info['root_prefix']
TypeError: byte indices must be integers or slices, not str
I am using Windows 64 bit system
The text was updated successfully, but these errors were encountered: