I want to install the RestKit for my project but in the first step when I want to add git submodule by using Terminal it gives me this error:
command not found
Here is the code that I input:
$ cd /path/to/MyApplication
$ git init
$ git submodule add git://github.com/RestKit/RestKit.git
$ open RestKit
The first line of code works but when I input the second line it gives me the error, anybody can help me please!
In the latest versions of XCode4 the command line tools (like git) are not installed by default. If you go to the Preferences menu you can install the command line utilities from there. You may need to restart your terminal after they've installed.
You should install git first for your OS.
like apt-get install git in ubuntu
or brew install git in OSX
Related
I am trying to use ! git clone to clone a repository into a specific directory.
But I noticed I can't use ! at all in my Jupyter Lab. The code runs with no error but nothing gets printed out. I double confirmed this using !pip list.
The actual code I am trying to run is
LABELIMG_PATH = os.path.join('Tensorflow', 'labelimg')
if not os.path.exists(LABELIMG_PATH):
os.makedirs(LABELIMG_PATH)
! git clone https://github.com/tzutalin/labelImg {LABELIMG_PATH}
But it runs instantly creating the labelimg folder without running the git clone code.
for !pip list it also runs instantly without printing any packages in the output cell.
I have checked and the virtual environment is being used in the kernel, I thought it was because of ipykernel packages and installed the few lines of code below.
conda install -c conda-forge pywin32
conda install -c anaconda jupyter_client
conda install -c conda-forge jupyter_core
But after rebooting it still didn't work. I checked other virtual environments and ! pip list also didnt work.
I also tried ! pip3 list, !pip list, !pip3 list and it all didn't work.
Would really appreciate any help. Thank you!
EDIT:
line 10 is the code I wish to use to clone the repo, line 13 is the next line which I have not run kindly ignore, the purpose was to show the output of line 10, as you can see it runs successfully almost instantly with no output
But the folder is empty and nothing is cloned.
As far as I know, if you want to run pip install of any sort you need not add a "!"
You just directly run pip install
"!" prefix commands as mentioned are special to be used in a particular code block with git and other similar commands.
If you want to clone the repo from your python code, use the library -> GitPython
from git import Repo
Repo.clone_from("git path here", "directory to clone to")
I am installing flutter and I got these errors ********git not found in your path, where is not recognized by internet or external command******** how to fix that??
In flutter installation steps it specifies that you need to have a git installed on your computer.
...
System requirements
...
. Git for Windows 2.x, with the Use Git from the Windows Command Prompt option.
...
You can use the comman "git --version" in the CMD to verify if you installed Git correctly.
If you do, you shuld see something like this: git version 2.24.0.windows.2.
I have setup Git in VSC version 1.8.3 (Centos 7 box), since a couple of months whenever I open VSC I get a notification to update to a version greater than 2. I click on update, I get forwarded to an external url to download git. I understand that an extension should get updated by VSC. Can you please let me know the steps to follow to upgrade? Thanks
The exact notification is:
You seem to have Git 1.8.3.1 installed. Code works best with Git >=3
Source : Git Extension Manage UPDATE Dont show again
Clicking on "Manage Extension" VSC code displays details of the extension, what is strange is when I click on installed extensions, I don't see Git extension
Install git, systemwide, from the official git website - or your OS’ built-in package manager: https://www.git-scm.com/
You can verify git by opening a new terminal window and just running git --version. If that’s up-to-date but VSC still reports you’re running an older version (after restarting VSC, for good measure) then check you don’t have another copy of git on your computer or in VSC’s PATH environment variable.
Had the same problem. Just found a working solution.
Git is installed by itself, it is not an extension. VSC is finding and using Git that is available on your system.
Solution from this post worked for me(the second solution from the accepted answer):
sudo yum -y install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm
sudo yum install git
I'm on CentOS 7
I am using pycharm 5.0.4 community edition.
I wanted to install package fuzzywuzzy.
But when i go to project interpreter window and try to install package, it shows me no available packages.
Can it be issue because I am using my work desktop.
Thanksenter image description here
Can you provide more details- Are you not able to see any packages? Try searching for some other packages like pip, matplotlib, django, numpy etc. Sometimes it takes time for the IDE to build skeletons before you can actually start installing the packages. So once the IDE wait for it to complete its setup and then try to access the installation packages available.
Also if you do you have any other python interpreter installed on your local machine? If so then try switching to that interpreter.
Below are some steps you can try, which worked for me:
Step-1 Activate your intelpython using:
source <your installation path>/bin/activate
Step-2 Clone the environment using conda clone command and make sure the pwd is ~/:
conda create -n <source_environment> --clone <destination_environment>
Step-3 Activate the cloned environment:
source ~/.conda/envs/<your_environment>/bin/activate
Step-4 Provide read-wite permissions to intelpython and cloned enviroment using:
sudo chown -R <user_name>:<group_name> /<path_to_directory i.e. /opt/intel and ~/.conda/envs>
Step-5 Open Pycharm and in System Interpreter add the path to above created enviroment and then you can use pip or Pycharm itself, it should work.
I had a similar problem. I was using the Intel python distribution, and installing packages required write permissions to the folder that intelpython was installed in, which in my case was /opt/intel/intelpython2.
Try adding write permissions to the folder using the following command:
sudo chown -R <username> </path/to/folder>
Then try adding missing packages and/or repositories as seen in this page - https://www.jetbrains.com/help/pycharm/installing-uninstalling-and-upgrading-packages.html.
I just updated my MBP to OSX 10.8 and am trying to start a new project with brunch.io which by default uses coffeescript and I prefer javascript so I need to clone the simple js skeleton. So something like this:
brunch new <someprojectname> --skeleton https://github.com/brunch/simple-js-skeleton.git
Which is what I have used previously and it worked fine. But today I am getting the following error:
error: Git clone error: /bin/sh: git: command not found
I really don't know how to fix this...
You can download Apple's official collection of developer command line utilities (which includes git) by either:
Opening Xcode, going to Preferences > Downloads and clicking the install button next to 'Command Line Utilities'
Going to developer.apple.com/downloads, and downloading "Xcode 4.4 Command Line Tools for OSX 10.8" from the Xcode 4.4 category
Check your .bashrc or .bash_profile if the appropiate PATH is set. Did you install git via macports? The update probably dropped the /opt/bin or /opt/local/bin from the PATH.
I got everything working again. Apparently the update to Mountain Lion dropped git altogether. Simply downloading the install package from here and running it has everything working again.
YOu have to change your security settings go to System Preferences > Security and Privacy > Change Allow Applications downloaded from --> Anywhere. There is a chance your security settings would be locked in that case press the lock at the bottom left on the pref pane.
Based on this article:
open your ~/.bash_profile, if you use nano it would be :
$ sudo nano ~/.bash_profile
add this line to the file:
export PATH=$PATH:/usr/local/git/bin/
Save & close the file and type on the terminal:
$ source ~/.bash_profile