Tag Archives: solution

Solution of error reporting in PIP installation of iPhone

Today, I encountered a problem when configuring pycaffe environment. I need to execute it when installing the library

for req in $(cat requirements.txt); do pip install $req; done
sudo pip install -r requirements.txt

Command, always report red error. Finally, sort it out.

First, there are various kinds of permission denied, which are finally solved by the root account operation.
Next, after all the others are installed, it’s hard to install IPython. You can install it with PIP install IPython
alone, and the error is:
command "Python" setup.py egg_ Info "failed with error code 1 in/TMP/pip-build-a63c8f/IPython/
after searching, we find the reason: the default version of IPython is too high, so we can only reduce the version manually.

pip install ipython==8888

The above command entered a non-existent version, so that all existing versions will be listed in the prompt.

After trying, the 6 and above versions all report errors, and finally use the highest version of 5.

sudo pip install ipython==5.5.0

Execute sudo PIP install - R again requirements.txt , there is a piece of requirement already satisfied . It's done!

ps:

    for reference only: my PIP version is manually upgraded to 9.0.2, and the python version comes with 2.7; warm tips: try to use root user to operate the whole process, not sudo, which can save a lot of trouble.

JQuery is a solution to the disappearance of listening events after adding elements with append

Suppose you want to append an element in the div with ID target
the original listening event format is:

$(".textBox").mouseover(function() {});

To be amended as follows:

$("#target").on("mouseover", ".textBox", function() {});

Add a dynamic box for target ID all the time, not a dynamic box!!! If you really can’t, just let the body go

Solution for successful but invalid atom minimap installation

To be honest, atom and its plug-ins are very powerful, but the installation process is very painful. I installed the minimap mini map plug-in, but it didn’t work in any way. There was no response in toogle in the menu, and there was almost no information.

Cause of error: I interpret it as a conflict between minimap and other plug-ins. The most controversial plug-in is activate power mode. The combo effect on the right side just occupies the position of the small map. Even if it is disabled, it is not easy to use. It must be uninstalled. At that time, he installed it just for fun. It’s easy to be blind after a long time, so he decisively unloaded it.

Solution: uninstall activate power mode, restart atom and get it done.

Hadoop datanode using JPS to view the solution that can’t be started

Problem Description: after the Hadoop environment is deployed, the process of datanode cannot be seen when running JPS on the slave machine.

Solution: delete all HDFS on slave- site.xml All contents in the datanode folder configured in( dfs.data.dir Parameter), and then initialize the namenode to run

hadoop namenode -format

Reinitialize.

Reason: the namenode has been initialized many times, but the master has not cleared all the initialization data in the datanode folder, which makes the ID generated in the two folders inconsistent. After deleting the initialization data in the datanode folder, the namenode initialization will take effect. Start Hadoop again and use JPS to see the datanode process.

Ubuntu “a user name is not in the sudoer folder. It will be reported. ” Solutions for

If the user name was not created when the system was installed, this problem occurs when using the sudo command.

Solution: input

su

Enter the root password. If you have not set the root password before, please visit the URL settings.
http://blog.csdn.net/baidu_ 27280587/article/details/53285620

After entering the successful root environment, enter

gedit /etc/sudoer

After opening the file, find the

root	ALL=(ALL:ALL) ALL

In this line, add the same line below it, and change root to your user name. Save and close the file, and then use the sudo command, no more errors will be reported.

“XXXXXX is a” namespace “, but here it is used as a” type “

Recently, I encountered this problem several times when learning C #. When writing ArrayList and StringBuilder, the main function will report the error that “XXXXXX is a” namespace “, but it is used as a” type “here. After several times of searching for information, we finally know where the mistake is.

For the convenience of the diagram, you can name the project name directly as the class name. That’s the mistake. The priority of the namespace is higher than the class name. Just change the project name when you create a new project.

In short, avoid duplicate class and project names.

Solution to the error $’\ R’: command not found when executing shell script under Linux

This error is caused by the different coding of windows system and Linux system. The carriage return in windows is , while that in Linux is , so carriage return in scripts written remotely with shell is not recognized by Linux system, but it can not be seen when editing with vim.
Solution: add - B , that is, VIM - B file name , when editing the script file with VIM, so that the open file is "binary mode", you can see the extra things, and the display is ^ m , delete it, save it and run it.

QQ browser open automatically appear two web page solution

The problem is shown in the figure:

solution:
steps

    open the QQ browser, click the “three” icon in the upper right corner, select settings
    , select “custom web page or a group of web pages”, do not select the options recommended by it, you can select the two recommended by it
    , you can also choose to set the web page, set your own common website ~

Git Clone Error: ‘fatal: HTTP request failed‘

There are several possible reasons for this situation

1) Problems with git version

2) The system time is wrong

1) For the first case, use this command to see the GIT version.

git –version

Most of the time, just uninstall the original GIT and re install a newer version. ( https://www.kernel.org/pub/software/scm/git/ perhaps https://github.com/git/git/releases )

2) For the second case, just modify the system time directly.

Use commands to modify, such as:

date -s “25 MAY 2019 17:30:00”

Manual modification is also possible.

Opensuse12.3 installation of VirtualBox error resolution

At the beginning, you will be prompted what to install DKMS, and then you will see the error as shown in the figure after downloading and installing, that is

sincerefly@linux-eq1f:~/Downloads/iso$ sudo rpm -Uivh dkms-2.2.0.3-1.noarch.rpm
root's password:
Ready...                          ################################# [100%]
        package dkms-2.2.0.3-1.noarch is already installed
sincerefly@linux-eq1f:~/Downloads/iso$ sudo /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules                                                                            done
Uninstalling old VirtualBox DKMS kernel modules                                                               done
Trying to register the VirtualBox kernel modules using DKMSError! echo
Your kernel headers for kernel 3.7.10-1.16-desktop cannot be found at
/lib/modules/3.7.10-1.16-desktop/build or /lib/modules/3.7.10-1.16-desktop/source.
                                                                                                              failed
  (Failed, trying without DKMS)
Recompiling VirtualBox kernel modules                                                                         failed

I don’t know what’s the reason. It’s not good to worry about virtual machines. One is to learn from CentOS. The other is to do experiments. It’s not safe in the physical system, but it’s OK. There’s Baidu. If there is a problem, it needs to be solved

Search for

   sudo apt-get install dkms build-essential linux-headers-$(uname -r)
   sudo /etc/init.d/vboxdrv setup

It’s just a Debian command

I see such a sentence in it

The reason is that the corresponding package for the corresponding kernel is missing. Although I have executed the install command for kernel-devel before, the corresponding kernel-devel for the uek kernel is not installed, the correct one should be kernel-uek-devel.

That “kernel devel installation command” misled me for a long time, suddenly woke up, it was the package.

This is easy to do. Use zypper search kernel devel to search, and it is

After the installation, run it again

sudo /etc/init.d/vboxdrv setup

success!

Then my VB can run.

Solution of installing Vue cli scaffold error-4048

Error report screenshot:

take a look at nodejs version and NPM version:

solution:
there is no permission, you need to use the administrator’s permission
right click the admin permission to run C: Windows/system32\ cmd.exe
If my article is helpful to you, welcome to like, leave a message and pay attention to it. Thank Sanlian!!!
The problem has not been solved!!! 😘😘😘

CSDN: I heard that you are good at playing
GitHub: zhongzhimao
Coupons: coupons

Solution to inaccessibility of Vue cli scaffold project after startup

The problem is as follows: the IP address cannot be accessed

Enter the file “project name – config”- index.js ”Open index.js File, modify parameter

after modification, it can be accessed normally:

If my article is helpful to you, welcome to like, leave a message and pay attention to it. Thank Sanlian!!!
The problem has not been solved!!! 😘😘😘

CSDN: I heard that you are good at playing
GitHub: zhongzhimao
Coupons: coupons